new FileUser(configDir, userName, "Alice in Wonderland", "alice@test.com", "secret");
editorRole.save();
adminRole.save();
Group editorGroup = new FileGroup(configDir, editorGroupId);
// editorGroup.addRole(editorRole);
editorGroup.add(user);
FileGroup adminGroup = new FileGroup(configDir, adminGroupId);
// adminGroup.addRole(editorRole);
// adminGroup.addRole(adminRole);
editorGroup.save();
adminGroup.save();
adminGroup.add(user);
user.save();
FileGroupManager groupManager = null;
UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
FileUserManager userManager = FileUserManager.instance(configDir, userTypes);
assertNotNull(userManager);
groupManager = FileGroupManager.instance(configDir);
assertNotNull(groupManager);
Group fetchedGroup = groupManager.getGroup(editorGroupId);
assertTrue(editorGroup.equals(fetchedGroup));
fetchedGroup = groupManager.getGroup(adminGroupId);
assertTrue(adminGroup.equals(fetchedGroup));
}