final MockHttpServletResponse infoResponse = new MockHttpServletResponse();
this.servlet.getInfo(null, null, infoRequest, infoResponse);
assertEquals(HttpStatus.OK.value(), infoResponse.getStatus());
final String result = infoResponse.getContentAsString();
final PJsonObject info = parseJSONObjectFromString(result);
assertTrue(info.has("scales"));
assertTrue(info.has("dpis"));
assertTrue(info.has("outputFormats"));
assertTrue(info.has("layouts"));
assertTrue(info.has("printURL"));
assertTrue(info.has("createURL"));
assertEquals(10, info.getArray("scales").size());
final PObject firstScale = info.getArray("scales").getObject(0);
assertEquals("1:5000", firstScale.getString("name"));
assertEquals("5000", firstScale.getString("value"));
assertEquals(5, info.getArray("dpis").size());
assertTrue(info.getArray("outputFormats").size() > 0);
assertTrue(info.getArray("outputFormats").getObject(0).has("name"));
assertTrue(info.getArray("layouts").size() > 0);
PObject layout = info.getArray("layouts").getObject(0);
assertEquals("A4 Portrait", layout.getString("name"));
assertTrue(layout.getBool("rotation"));
assertEquals(802, layout.getObject("map").getInt("width"));
assertEquals(210, layout.getObject("map").getInt("height"));
assertEquals("/print-old/dep/print.pdf", info.getString("printURL"));
assertEquals("/print-old/dep/create.json", info.getString("createURL"));
}