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

        {
            FeedOperation op = parser.read();

            assertEquals(FeedOperation.Type.REMOVE, op.getType());
            assertEquals("id:ns:news::http://news9a", op.getDocumentRemove().getId().toString());
        }
        {
            FeedOperation op = parser.read();

            assertEquals(FeedOperation.Type.REMOVE, op.getType());
            assertEquals("id:ns:news::http://news9b", op.getDocumentRemove().getId().toString());
        }
        {
            // Remove without documentid. Not supported.
            try {
                parser.read();
                fail();
            } catch (Exception e) {
                System.out.println(e.getMessage());
            }
        }
    }
Simple test case for Vespa XML parser.

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