raw.put("constraint", "AnyText like '%pollution%'");
raw.put("sortby", "title:A,abstract:D");
raw.put("distributedSearch", "true");
raw.put("hopCount", "10");
raw.put("responsehandler", "http://www.geoserver.org");
GetRecordsKvpRequestReader reader = new GetRecordsKvpRequestReader();
reader.setApplicationContext(applicationContext);
Object request = reader.createRequest();
GetRecordsType gr = (GetRecordsType) reader.read(request, parseKvp(raw), raw);
// basic checks
assertEquals("CSW", gr.getService());
assertEquals("2.0.2", gr.getVersion());
assertEquals(ResultType.RESULTS, gr.getResultType());