FileRole editorRole = new FileRole(getAccreditableManager().getRoleManager(), getLogger(),
editorRoleId);
FileRole adminRole = new FileRole(getAccreditableManager().getRoleManager(), getLogger(),
adminRoleId);
User user = new FileUser(getAccreditableManager().getUserManager(), getLogger(), userName,
"Alice in Wonderland", "alice@test.com", "secret");
editorRole.save();
adminRole.save();
Group editorGroup = new FileGroup(getAccreditableManager().getGroupManager(), getLogger(),
editorGroupId);
// editorGroup.addRole(editorRole);
editorGroup.add(user);
FileGroup adminGroup = new FileGroup(getAccreditableManager().getGroupManager(),
getLogger(), adminGroupId);
// adminGroup.addRole(editorRole);
// adminGroup.addRole(adminRole);
editorGroup.save();
adminGroup.save();
adminGroup.add(user);
user.save();
FileGroupManager groupManager = null;
UserManager userManager = getAccreditableManager().getUserManager();
assertNotNull(userManager);