/**
  * Setup the service manager.
  */
 protected function setUp()
 {
     $this->serviceConfig = (require TEST_BASE_PATH . '/config/module.config.php');
     $this->serviceManager = new ServiceManager();
     $this->serviceManager->setAllowOverride(true);
     $this->serviceManager->setService('config', $this->serviceConfig);
     $this->serviceManager->setService('custom.strategy', $this->getMock('Zend\\Hydrator\\Strategy\\StrategyInterface'));
     $this->serviceManager->setService('custom.filter', $this->getMock('Zend\\Hydrator\\Filter\\FilterInterface'));
     $this->serviceManager->setService('custom.naming_strategy', $this->getMock('Zend\\Hydrator\\NamingStrategy\\NamingStrategyInterface'));
     $this->hydratorManager = $this->getMockBuilder(HydratorPluginManager::class)->disableOriginalConstructor()->getMock();
     $this->hydratorManager->expects($this->any())->method('getServiceLocator')->will($this->returnValue($this->serviceManager));
 }