@Test
    public void testTestAndSetConditionAttribute() throws Exception {
        VespaXMLFeedReader parser = new VespaXMLFeedReader("src/test/vespaxmlparser/testandset.xml", manager);
        final int NUM_OPERATIONS_IN_FEED = 3;

        for (int i = 0; i < NUM_OPERATIONS_IN_FEED; i++) {
            FeedOperation op = parser.read();

            assertTrue("Missing test and set condition", op.getCondition().isPresent());
            assertEquals("Condition is not the same as in xml feed", "news.value_long == 1", op.getCondition().getSelection());
        }
    }
Simple test case for Vespa XML parser.

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