String adminRoleId = "adminRole";
FileRole editorRole = new FileRole(configDir, editorRoleId);
FileRole adminRole = new FileRole(configDir, adminRoleId);
User user =
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);