protected function setUp()
 {
     parent::setUp();
     ServiceLocatorFactory::setInstance($this->getServiceManager());
     $this->controller = new IndexController();
     $this->controller->setServiceLocator(ServiceLocatorFactory::getInstance());
     $this->controller->setEvent($this->event);
     $this->controller->setServiceLocator($this->serviceManager);
 }