@Test
    public void testApplyRemoveMultiList() {
        Document doc = createDocument();
        assertNull(doc.getFieldValue("strarray"));
        Array<StringFieldValue> strArray = new Array<>(DataType.getArray(DataType.STRING));
        strArray.add(new StringFieldValue("hello hello"));
        strArray.add(new StringFieldValue("remove val 1"));
        doc.setFieldValue("strarray", strArray);
        assertNotNull(doc.getFieldValue("strarray"));
        docUp.addFieldUpdate(removeMultiList);
        docUp.applyTo(doc);
        assertEquals(1, ((List)doc.getFieldValue("strarray")).size());
        List docList = (List)doc.getFieldValue("strarray");
        assertEquals(new StringFieldValue("hello hello"), docList.get(0));
    }
Tests applying and serializing document updates.

@author Einar M R Rosenvinge
document/src/test/java/com/yahoo/document/DocumentUpdateTestCase.java