public function testValidatePluginThrowsException()
 {
     $pluginManager = new HydratorPluginManager();
     $this->setExpectedException('Zend\\ServiceManager\\Exception\\RuntimeException');
     $pluginManager->validatePlugin($this);
 }
 /**
  * @param HydratorPluginManager $pluginManager
  * @param string                $name
  * @return \PHPUnit_Framework_MockObject_MockObject|HydratorPluginInterface
  */
 protected function addPlugin(HydratorPluginManager $pluginManager, $name)
 {
     $plugin = $this->getMock('Athene2\\Hydrator\\Plugin\\HydratorPluginInterface');
     $pluginManager->setService($name, $plugin);
     return $plugin;
 }