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