UserController { @GetMapping({"user", "/user.html"}) public String user(Authentication authentication, ModelMap modelMap) { modelMap.addAttribute("user", authentication.getPrincipal()); return "user"; }  @GetMapping("/") String index(Authentication authentication); @GetMapping({"user", "/user.html"}) String user(Authentication authentication, ModelMap modelMap);  }
@Test public void user() throws Exception { doUser("/user.html"); }