*/
final public void testRemoveRole() throws AccessControlException {
File configDir = getAccreditablesDirectory();
String name = "test2";
Role role = new FileRole(configDir, name);
FileRoleManager manager = null;
try {
manager = FileRoleManager.instance(configDir);
} 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);
}