LoginController { @RequestMapping(value = "/logout") @RequiresUser public @ResponseBody AjaxResponse logout() { String username = String.valueOf(SecurityUtils.getSubject().getPrincipal()); SecurityUtils.getSubject().logout(); logger.debug("{}退出登陆!", username); return new AjaxResponse(true, "退出成功!"); }  @RequestMapping(value = { "/login" }, method = RequestMethod.POST, produces = {"application/json"}) @ResponseBody AjaxResponse login(String username, String password, String rememberme); @RequestMapping(value = "/logout") @RequiresUser @ResponseBody AjaxResponse logout();  }
@Test public void testLogout() { fail("Not yet implemented"); }