public function testValidation()
{
$sec = new TSecurityManager();
$sec->init(null);
$sec->setValidation('MD5');
self::assertEquals('MD5', $sec->getValidation());
$sec->setValidation('SHA1');
self::assertEquals('SHA1', $sec->getValidation());
try {
$sec->setValidation('BAD');
self::fail('Expected TInvalidDataValueException not thrown');
} catch (TInvalidDataValueException $e) {
}
}