@Test
public void testStartPositionOverNumberOfRecords() throws Exception {
String request = "csw?service=CSW&version=2.0.2&request=GetRecords&typeNames=csw:Record&resultType=results&elementSetName=brief&startPosition=50&maxRecords=10";
Document d = getAsDOM(request, "ISO-8859-1");
checkValidationErrors(d, new CSWConfiguration());
// check we have the expected results
assertXpathEvaluatesTo("brief", "//csw:SearchResults/@elementSet", d);
assertXpathEvaluatesTo("12", "//csw:SearchResults/@numberOfRecordsMatched", d);
assertXpathEvaluatesTo("0", "//csw:SearchResults/@numberOfRecordsReturned", d);