*/
final public void testRemoveRole() throws AccessControlException {
File configDir = getAccreditablesDirectory();
String name = "test2";
Role role = new FileRole(getAccreditableManager().getRoleManager(), getLogger(), name);
FileRoleManager _manager = null;
try {
_manager = FileRoleManager.instance(getAccreditableManager(), configDir, getLogger());
} catch (AccessControlException e) {
e.printStackTrace();
}
assertNotNull(_manager);
Role[] roles = _manager.getRoles();
int roleCountBefore = roles.length;
_manager.add(role);
_manager.remove(role);
roles = _manager.getRoles();
int roleCountAfter = roles.length;
assertEquals(roleCountBefore, roleCountAfter);
}