assertTrue(!service.hasRole(user.getUserName(), "user"));
Role role3 = service.getRole(user.getUserName(),"user");
assertTrue(null == role3);
// add permission
Permission perm1 = JetspeedSecurity.getPermission("info");
assertTrue(null != perm1);
service.addPermission("guest", perm1);
Permission permission = service.getPermission("guest", "info");
assertTrue(permission.getName().equals("info"));
assertTrue(service.hasPermission("guest", "info"));
// remove permission
service.removePermission("guest", "info");
assertTrue(!service.hasPermission( "guest", "info"));
Permission perm2 = service.getPermission( "guest", "info");
assertTrue(null == perm2);
}
catch (Exception e)
{