### Question:
HealthController { @GetMapping("health") @ResponseBody public String health() { return "OK"; }  @GetMapping("") void home(HttpServletResponse response); @GetMapping("health") @ResponseBody String health();  }### Answer:
@Test @SneakyThrows public void healthTest() { mvc.perform(MockMvcRequestBuilders.get("/health")) .andExpect(status().isOk()) .andExpect(content().string(containsString("OK"))); }