### Question:
HealthCheckHandler { @HEAD @Path("/healthcheck") @Produces("text/html") public Response healthcheck(@QueryParam("requestId") String requestId) { return HEALTH_CHECK_RESPONSE; }  @HEAD @Path("/healthcheck") @Produces("text/html") Response healthcheck(@QueryParam("requestId") String requestId); static final Response HEALTH_CHECK_RESPONSE; }### Answer:
@Test public void testHealthcheck() throws JSONException { HttpEntity<String> entity = new HttpEntity<String>(null, headers); ResponseEntity<String> response = restTemplate.exchange(createURLWithPort("manage/health"), HttpMethod.GET, entity, String.class); assertEquals(Response.Status.OK.getStatusCode(), response.getStatusCode().value()); }