/**
  * @covers ASF\UserBundle\Utils\Manager\UserManager
  */
 public function testUserManager()
 {
     $this->assertEquals('ASF\\UserBundle\\Entity\\User', $this->entityManager->getClassName());
 }
 /**
  * (non-PHPdoc)
  * @see \Symfony\Component\Form\DataTransformerInterface::reverseTransform()
  */
 public function reverseTransform($string)
 {
     $user = $this->userManager->getRepository()->findOneBy(array('username' => $string));
     return $user;
 }