public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $options = $serviceLocator->get('HtImg\\ModuleOptions');
     $pluginManager = new FilterLoaderPluginManager(new Config($options->getFilterLoaders()));
     $pluginManager->setServiceLocator($serviceLocator);
     return $pluginManager;
 }
 public function testGetExceptionWithInvalidPlugin()
 {
     $filterLoaders = new FilterLoaderPluginManager();
     $this->setExpectedException('HtImgModule\\Exception\\InvalidArgumentException');
     $filterLoaders->validatePlugin(new \ArrayObject());
 }