@Test
    public void testNews8() throws Exception {
        VespaXMLFeedReader parser = new VespaXMLFeedReader("src/test/vespaxmlparser/test08.xml", manager);

        FeedOperation op = parser.read();

        assertEquals(FeedOperation.Type.UPDATE, op.getType());

        DocumentUpdate docUpdate = op.getDocumentUpdate();

        //stringarr
        List<ValueUpdate> vuList = docUpdate.getFieldUpdate("stringarr").getValueUpdates();
        assertTrue(vuList.get(0) instanceof RemoveValueUpdate);
        assertEquals(new StringFieldValue("removeString1"), vuList.get(0).getValue());
        assertTrue(vuList.get(1) instanceof RemoveValueUpdate);
        assertEquals(new StringFieldValue("removeString2"), vuList.get(1).getValue());

        //weightedsetint
        vuList = docUpdate.getFieldUpdate("weightedsetint").getValueUpdates();
        assertEquals(2, vuList.size());
        assertTrue(vuList.contains(new RemoveValueUpdate(new IntegerFieldValue(5))));
        assertTrue(vuList.contains(new RemoveValueUpdate(new IntegerFieldValue(4))));
    }
Simple test case for Vespa XML parser.

@author sveina
document/src/test/java/com/yahoo/vespaxmlparser/VespaXMLReaderTestCase.java