/**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     $appConfig = (include 'config/application.config.php');
     $this->setApplicationConfig($appConfig);
     parent::setUp();
     $user = new \MockUser($this->getApplication()->getServiceManager());
     $account = new Account();
     $account->setId(1)->setActive(1)->setDescription('Test Account')->setGuid('24234rr2r2r')->setName('Test Account');
     $em = $this->getMock('EntityManager', array('getRepository', 'getClassMetadata', 'persist', 'flush', 'find'), array(), '', false);
     $em->expects($this->any())->method('find')->will($this->returnValue($account));
     $this->accountController = new AccountController();
 }