RolesController { @RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasApplicationPermission(ADMIN)") public String getRoles() { return "/user/role/index"; }  @RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasApplicationPermission(ADMIN)") String getRoles();  }
@Test public void getRoles() { String view = new RolesController().getRoles(); assertEquals("/user/role/index", view); }