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