this.servlet.getCapabilities(false, "", servletResponse);
assertEquals(HttpStatus.OK.value(), servletResponse.getStatus());
final String contentAsString = servletResponse.getContentAsString();
assertFalse(contentAsString.contains("\n"));
final PJsonObject getInfoJson = parseJSONObjectFromString(contentAsString);
assertTrue(getInfoJson.has("layouts"));
final PJsonArray layouts = getInfoJson.getJSONArray("layouts");
assertEquals(2, layouts.size());
final PObject mainLayout = layouts.getObject(0);
assertEquals("A4 Landscape", mainLayout.getString("name"));
assertTrue(mainLayout.has("attributes"));
assertEquals(2, mainLayout.getArray("attributes").size());
assertEquals("imageMap", mainLayout.getArray("attributes").getObject(1).getString("name"));
assertTrue(getInfoJson.has("formats"));
final PJsonArray formats = getInfoJson.getJSONArray("formats");
assertCapabilitiesFormats(formats);
}