LoginController { @NoAuthorizationCheck @RequestMapping(value = "/loginfailed", method = RequestMethod.GET) public String loginerror(ModelMap model) { model.addAttribute("error", "true"); return "login"; }  @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 testLoginerror() { assertEquals(loginController.loginerror(model),"login"); }