boolean result = authorizationSession.existsEndEntityProfileInRules(admin, id);
assertFalse("Id "+id+" exists in access rules, did we generate a real existing id?", result);
// Add the id to access rules
try {
List<AccessRule> accessrules = new ArrayList<AccessRule>();
accessrules.add(new AccessRule(AccessRulesConstants.ENDENTITYPROFILEPREFIX + id, AccessRule.RULE_ACCEPT, false));
cleanUpAdminGroupTests(admin, TEST_GROUPNAME, accessrules);
try {
adminGroupSession.addAdminGroup(admin, TEST_GROUPNAME);
} catch (AdminGroupExistsException e) {
// NOPMD: do nothing