UsersController { @RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasApplicationPermission(ADMIN)") public String getUsers() { return "/user/index"; }  @RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasApplicationPermission(ADMIN)") String getUsers();  }
@Test public void login() { assertEquals("/user/index", new UsersController().getUsers()); }