### Question:
GlobalHealthcheckHandler { protected HttpEntity<String> buildHttpEntityForRequest() { HttpHeaders headers = new HttpHeaders(); headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON)); headers.set(HttpHeaders.CONTENT_TYPE, "application/json"); headers.set(HttpHeaders.AUTHORIZATION, msoAuth); HttpEntity<String> entity = new HttpEntity<>("parameters", headers); return entity; }  @GET @Produces("application/json") @Operation(description = "Performing global health check", responses = @ApiResponse( content = @Content(array = @ArraySchema(schema = @Schema(implementation = Response.class))))) @Transactional Response globalHealthcheck(@DefaultValue("true") @QueryParam("enableBpmn") boolean enableBpmn,
            @Context ContainerRequestContext requestContext);  }### Answer:
@Test public void buildHttpEntityForRequestTest() { HttpEntity<String> he = globalhealth.buildHttpEntityForRequest(); assertEquals(MediaType.APPLICATION_JSON, he.getHeaders().getAccept().get(0)); assertEquals(MediaType.APPLICATION_JSON, he.getHeaders().getContentType()); }