public function testPasswordMode()
{
$userManager = new TUserManager();
$userManager->setPasswordMode('Clear');
self::assertEquals('Clear', $userManager->getPasswordMode());
$userManager->setPasswordMode('MD5');
self::assertEquals('MD5', $userManager->getPasswordMode());
$userManager->setPasswordMode('SHA1');
self::assertEquals('SHA1', $userManager->getPasswordMode());
try {
$userManager->setPasswordMode('Invalid');
self::fail('Exception TInvalidDataValueException not thrown');
} catch (TInvalidDataValueException $e) {
}
}