setUpConfigFiles();
final MockHttpServletRequest servletCreateRequest = new MockHttpServletRequest();
final MockHttpServletResponse servletCreateResponse = new MockHttpServletResponse();
final PJsonObject requestJson = parseJSONObjectFromFile(MapPrinterServletTest.class, "requestData.json");
requestJson.getInternalObj().remove("outputFilename");
this.servlet.createReportAndGetNoAppId("png", requestJson.getInternalObj().toString(2), false, servletCreateRequest, servletCreateResponse);
assertEquals(HttpStatus.OK.value(), servletCreateResponse.getStatus());
assertCorrectResponse(servletCreateResponse, "config_test_outputname-");
requestJson.getInternalObj().put("layout", "WithOutputName");
this.servlet.createReportAndGetNoAppId("png", requestJson.getInternalObj().toString(2), false, servletCreateRequest, servletCreateResponse);
assertEquals(HttpStatus.OK.value(), servletCreateResponse.getStatus());
assertCorrectResponse(servletCreateResponse, "template_test_outputname-");
}