userName,
"Alice in Wonderland",
"alice@wonderland.com",
"secret");
UserType[] userTypes = { FileAccreditableManager.getDefaultUserType() };
FileUserManager manager = FileUserManager.instance(configDir, userTypes);
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());
}