public function testAuthenticationNotEzUser()
{
$password = 'some_encoded_password';
$user = $this->getMock('Symfony\\Component\\Security\\Core\\User\\UserInterface');
$user->expects($this->any())->method('getPassword')->will($this->returnValue($password));
$tokenUser = $this->getMock('Symfony\\Component\\Security\\Core\\User\\UserInterface');
$tokenUser->expects($this->any())->method('getPassword')->will($this->returnValue($password));
$token = new UsernamePasswordToken($tokenUser, 'foo', 'bar');
$method = new \ReflectionMethod($this->authProvider, 'checkAuthentication');
$method->setAccessible(true);
$method->invoke($this->authProvider, $user, $token);
}