public function testCreateServiceFromPluginManager()
 {
     $serviceLocator = new ServiceManager();
     $serviceLocator->setService('SharedEventManager', new SharedEventManager());
     $eventManagers = new EventManagerPluginManager();
     $eventManagers->setServiceLocator($serviceLocator);
     $actual = $this->sut->createService($eventManagers);
     self::assertInstanceOf('\\Zend\\EventManager\\EventManager', $actual);
 }
 /**
  * @expectedException \Zend\ServiceManager\Exception\RuntimeException
  * @throws \Zend\ServiceManager\Exception\RuntimeException
  */
 public function testPluginIsInvalid()
 {
     $this->sut->validatePlugin(new \stdClass());
 }