assertEquals(filter, constraint.getFilter());
}
@Test
public void testParseGetRecordsById() throws Exception {
GetRecordByIdType gr = (GetRecordByIdType) parser.parse(getClass().getResourceAsStream(
"GetRecordById.xml"));
// check the attributes
assertEquals("CSW", gr.getService());
assertEquals("2.0.2", gr.getVersion());
assertEquals("application/xml", gr.getOutputFormat());
assertEquals("http://www.opengis.net/cat/csw/2.0.2", gr.getOutputSchema());
// the element set name
ElementSetNameType esn = gr.getElementSetName();
assertEquals(ElementSetType.SUMMARY, esn.getValue());
// the ids
List<URI> ids = gr.getId();
assertEquals(new URI("REC-10"), ids.get(0));
assertEquals(new URI("REC-11"), ids.get(1));
assertEquals(new URI("REC-12"), ids.get(2));
}