UserController { @GetMapping("/") public String index(Authentication authentication) { return authentication == null ? "index" : "redirect:/user.html"; }  @GetMapping("/") String index(Authentication authentication); @GetMapping({"user", "/user.html"}) String user(Authentication authentication, ModelMap modelMap);  }
@Test public void index() throws Exception { doUser("/"); }