/**
  * @test
  *
  * @expectedException Symfony\Component\Security\Core\Exception\UnsupportedUserException
  * @expectedExceptionMessage The provider cannot refresh any kind of user.
  */
 public function throwAlwaysWhenRefreshUserMethodCalled()
 {
     $manager = new UserManager($this->createIdentityManagerMock());
     $manager->refreshUser($this->createUserMock());
 }