File configDir = accrMgr.getConfigurationDirectory();
String userName = "aliceTest";
FileUser user = new FileUser(getAccreditableManager().getUserManager(), getLogger(),
userName, "Alice in Wonderland", "alice@wonderland.com", "secret");
UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
FileUserManager _manager = FileUserManager.instance(getAccreditableManager(), configDir,
userTypes, getLogger());
assertNotNull(_manager);
_manager.add(user);
User otherUser = _manager.getUser(userName);
assertEquals(user, otherUser);
assertEquals(user.getDescription(), otherUser.getDescription());
assertEquals(user.getEmail(), otherUser.getEmail());
assertEquals(user.getEncryptedPassword(), ((AbstractUser) otherUser).getEncryptedPassword());
}