*
* @throws AccessControlException DOCUMENT ME!
*/
final public void testGetUser() throws AccessControlException {
File configDir = getAccreditablesDirectory();
FileUserManager manager = null;
String userName = "testuser";
FileUser user =
new FileUser(
configDir,
userName,
"Alice in Wonderland",
"alice@wonderland.com",
"secret");
manager = FileUserManager.instance(configDir);
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());
}