usManager.addRole("role1", null, null);
usManager.addUser("user1", "pass1", new String[] { "role1" }, null, null, false);
AuthorizationManager authManager = realm.getAuthorizationManager();
authManager.authorizeUser("dish", "/r1/", "read");
authManager.denyUser("dish", "/r1/r2", "read");
assertFalse(authManager.isUserAuthorized("dish", "/x1/x2", "read"));
authManager.authorizeRole("role1", "/x1", "read");
authManager.denyRole("role1", "/x1/x2", "read");
assertFalse(authManager.isRoleAuthorized("role1", "/x1/x2", "read"));