### Question:
SysControllerV2 { @ApiOperation(value = "${SysControllerV2.checkVaultHealth.value}", notes = "${SysControllerV2.checkVaultHealth.notes}") @GetMapping(value ="/v2/health" ,produces="application/json") public ResponseEntity<String> checkVaultHealth(){ return sysService.checkVaultHealth(); }  @ApiOperation(value = "${SysControllerV2.checkVaultHealth.value}", notes = "${SysControllerV2.checkVaultHealth.notes}") @GetMapping(value ="/v2/health" ,produces="application/json") ResponseEntity<String> checkVaultHealth(); @ApiOperation(value = "${SysControllerV2.checkSealStatus.value}", notes = "${SysControllerV2.checkSealStatus.notes}") @GetMapping(value ="/v2/seal-status" ,produces="application/json") ResponseEntity<String> checkVaultSealStatus(); @ApiOperation(value = "${SysControllerV2.unseal.value}", notes = "${SysControllerV2.unseal.notes}") @PostMapping(value ="/v2/unseal" , consumes = "application/json" ,produces="application/json") ResponseEntity<String> unseal(@RequestBody Unseal unseal); @ApiOperation(value = "${SysControllerV2.unsealProgress.value}", notes = "${SysControllerV2.unsealProgress.notes}") @GetMapping(value ="/v2/unseal-progress" ,produces="application/json") ResponseEntity<String> unsealProgress(@RequestParam("serverip" ) String serverip);  }### Answer:
@Test public void test_checkVaultHealth() throws Exception { String responseMessage = "{ \"messages\": [ \"Healthy.All OK\" ]}"; ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseMessage); when(sysService.checkVaultHealth()).thenReturn(responseEntityExpected); mockMvc.perform(MockMvcRequestBuilders.get("/v2/health") .header("Content-Type", "application/json;charset=UTF-8")) .andExpect(status().isOk()) .andExpect(content().string(containsString(responseMessage))); }