public function testRefreshUser()
 {
     $user = $this->getUser();
     $crit = array('id' => $user->getId());
     $this->repository->expects($this->once())->method('findOneBy')->with($this->equalTo($crit))->will($this->returnValue(array()));
     $this->userManager->refreshUser($user);
 }