private void testCreateReport(String requestPath, String printSpec) throws Exception,
JSONException, Exception {
ClientHttpRequest request = getPrintRequest(requestPath, HttpMethod.POST);
setPrintSpec(printSpec, request);
response = request.execute();
assertEquals(HttpStatus.OK, response.getStatusCode());
assertEquals(getJsonMediaType(), response.getHeaders().getContentType());
String responseAsText = getBodyAsText(response);
JSONObject createResult = new JSONObject(responseAsText);