@Test
    public void testNews5() throws Exception {
        // Adding a few new fields to a Document using different syntax
        VespaXMLFeedReader parser = new VespaXMLFeedReader("src/test/vespaxmlparser/test05.xml", manager);

        FeedOperation op = parser.read();

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

        DocumentUpdate docUpdate = op.getDocumentUpdate();

        //url
        assertNull(docUpdate.getFieldUpdate("url"));

        //title
        assertNull(docUpdate.getFieldUpdate("title"));

        //last_downloaded
        assertNull(docUpdate.getFieldUpdate("last_downloaded"));

        //value_long
        //assertNull(docUpdate.getFieldUpdate("value_long"));

        //value_content
        assertNull(docUpdate.getFieldUpdate("value_content"));

        //stringarr
        List stringarr = docUpdate.getFieldUpdate("stringarr").getValueUpdates();//.getValueUpdate(0).getValue();
        assertEquals(new StringFieldValue("addString1"), ((ValueUpdate)stringarr.get(0)).getValue());
        assertEquals(new StringFieldValue("addString2"), ((ValueUpdate)stringarr.get(1)).getValue());

        //intarr
        assertNull(docUpdate.getFieldUpdate("intarr"));

        //longarr
        List longarr = docUpdate.getFieldUpdate("longarr").getValueUpdates();
        assertEquals(new LongFieldValue((long)5), ((ValueUpdate)longarr.get(0)).getValue());

        //bytearr
        assertNull(docUpdate.getFieldUpdate("bytearr"));

        //floatarr
        assertNull(docUpdate.getFieldUpdate("floatarr"));

        //weightedsetint
        assertEquals(new IntegerFieldValue(11), docUpdate.getFieldUpdate("weightedsetint").getValueUpdate(0).getValue());
        assertEquals(Integer.valueOf(11),
                     (Integer)((AddValueUpdate)docUpdate.getFieldUpdate("weightedsetint").getValueUpdate(0))
                             .getWeight());
        assertEquals(new IntegerFieldValue(12), docUpdate.getFieldUpdate("weightedsetint").getValueUpdate(1).getValue());
        assertEquals(Integer.valueOf(12),
                     (Integer)((AddValueUpdate)docUpdate.getFieldUpdate("weightedsetint").getValueUpdate(1))
                             .getWeight());

        //weightedsetstring
        assertEquals(new StringFieldValue("add13"), docUpdate.getFieldUpdate("weightedsetstring").getValueUpdate(0).getValue());
        assertEquals(Integer.valueOf(1),
                     (Integer)((AddValueUpdate)docUpdate.getFieldUpdate("weightedsetstring").getValueUpdate(0))
                             .getWeight());
    }
Simple test case for Vespa XML parser.

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