DiagnosticController { public Response heap(Request request) { accessControl.validate(request.clientIP()); return Response.text(Diagnostic.heap()); }  Response vm(Request request); Response thread(Request request); Response heap(Request request);  }
@Test void heap() { Response response = controller.heap(request); assertThat(response.contentType()).get().isEqualTo(ContentType.TEXT_PLAIN); }