@Test public void hello() throws Exception { mockMvc.perform(get("/hello")) .andExpect(status().isOk()) .andExpect(content().string("hello")); }
@GetMapping("/hello") public String hello() { return "hello"; }
UserController { @GetMapping("/hello") public String hello() { return "hello"; } }
UserController { @GetMapping("/hello") public String hello() { return "hello"; }  }
UserController { @GetMapping("/hello") public String hello() { return "hello"; }  @GetMapping("/hello") String hello(); }
UserController { @GetMapping("/hello") public String hello() { return "hello"; }  @GetMapping("/hello") String hello();  }