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