### Question:
UserController { @GetMapping("/hello") public Object getHello() { return "Hello"; }  @GetMapping("/hello") Object getHello(); @PostMapping("/login") ResponseEntity<Response> getToken(@RequestBody BasicAuthDto dao , @RequestHeader HttpHeaders headers); @GetMapping ResponseEntity<List<User>> getAllUser(@RequestHeader HttpHeaders headers); @DeleteMapping("/{userId}") ResponseEntity<Response> deleteUserById(@PathVariable String userId, @RequestHeader HttpHeaders headers);  }### Answer:
@Test public void testGetHello() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/api/v1/users/hello")) .andExpect(MockMvcResultMatchers.status().isOk()) .andExpect(MockMvcResultMatchers.content().string("Hello")); }