raw.put("bbox", "-10,-10,10,10");
raw.put("height", "600");
raw.put("width", "800");
raw.put("request", "GetMap");
GetMapRequest request = (GetMapRequest) reader.createRequest();
request = (GetMapRequest) reader.read(request, parseKvp(raw), caseInsensitiveKvp(raw));
String layer = MockData.BASIC_POLYGONS.getLocalPart();
assertEquals(1, request.getLayers().size());
assertTrue(request.getLayers().get(0).getName().endsWith(layer));
assertEquals(1, request.getStyles().size());
Style expected = getCatalog().getStyleByName(layer).getStyle();
Style style = request.getStyles().get(0);
assertEquals(expected, style);
assertEquals("image/jpeg", request.getFormat());
assertEquals(600, request.getHeight());
assertEquals(800, request.getWidth());
assertNotNull(request.getBbox());
assertEquals(-10d, request.getBbox().getMinX(), 0);
assertEquals(-10d, request.getBbox().getMinY(), 0);
assertEquals(10d, request.getBbox().getMaxX(), 0);
assertEquals(10d, request.getBbox().getMaxY(), 0);
assertEquals("epsg:3003", request.getSRS());
}