LoginController { @NoAuthorizationCheck @RequestMapping(value = "auth/welcome", method = RequestMethod.GET) public String validUserHandle(ModelMap model, Principal principal, Authentication authentication) { String sUserId = principal.getName(); model.addAttribute("username", sUserId); return "redirect:home"; }  @NoAuthorizationCheck @RequestMapping(value = "auth/welcome", method = RequestMethod.GET) String validUserHandle(ModelMap model, Principal principal,
			Authentication authentication); @NoAuthorizationCheck @RequestMapping(value = "/login", method = RequestMethod.GET) String login(ModelMap model); @NoAuthorizationCheck @RequestMapping(value = "/loginfailed", method = RequestMethod.GET) String loginerror(ModelMap model);  }
@Test public void testValidUserHandle() throws SQLException { assertEquals(loginController.validUserHandle(model, principal, authentication),"redirect:home"); }