assertEquals(HttpStatus.OK.value(), defaultGetInfoResponse.getStatus());
final String contentAsString = defaultGetInfoResponse.getContentAsString();
assertFalse(contentAsString.contains("\n"));
final PJsonObject defaultGetInfoJson = parseJSONObjectFromString(contentAsString);
final PJsonArray defaultLayouts = defaultGetInfoJson.getJSONArray("layouts");
final PObject a4LandscapeLayout = defaultLayouts.getObject(0);
assertEquals("A4 Landscape", a4LandscapeLayout.getString("name"));
final MockHttpServletResponse app2GetInfoResponse = new MockHttpServletResponse();
this.servlet.getCapabilities("app2", false, "", app2GetInfoResponse);
assertEquals(HttpStatus.OK.value(), app2GetInfoResponse.getStatus());
final PJsonObject app2GetInfoJson = parseJSONObjectFromString(app2GetInfoResponse.getContentAsString());
final PJsonArray app2Layouts = app2GetInfoJson.getJSONArray("layouts");
final PObject mainLayout = app2Layouts.getObject(0);
assertEquals("main", mainLayout.getString("name"));
final MockHttpServletResponse noSuchGetInfoResponse = new MockHttpServletResponse();
this.servlet.getCapabilities("NoSuch", false, "", noSuchGetInfoResponse);
assertEquals(HttpStatus.NOT_FOUND.value(), noSuchGetInfoResponse.getStatus());