Parser parser = Abdera.getNewParser();
InputStream stream = OpenSearchTest.class.getResourceAsStream("/opensearch.xml");
Document<Element> doc = parser.parse(stream);
IntegerElement tr = doc.getRoot().getFirstChild(OpenSearchConstants.TOTAL_RESULTS_V10);
assertNotNull(tr);
assertEquals(tr.getValue(), 47);
IntegerElement ipp = doc.getRoot().getFirstChild(OpenSearchConstants.ITEMS_PER_PAGE_V10);
assertNotNull(ipp);
assertEquals(ipp.getValue(), 1);
IntegerElement si = doc.getRoot().getFirstChild(OpenSearchConstants.START_INDEX_V10);
assertNotNull(si);
assertEquals(si.getValue(), 1);
}