/**
  * @param $params
  */
 public function __invoke($params)
 {
     $serviceManager = ServiceManager::getServiceManager();
     $testPluginService = new TestPluginService();
     $testPluginService->setServiceManager($serviceManager);
     $serviceManager->register(TestPluginService::CONFIG_ID, $testPluginService);
 }
 /**
  * Get the service with the stubbed registry
  * @return TestPluginService
  */
 protected function getTestPluginService()
 {
     $testPluginService = new TestPluginService();
     $prophet = new Prophet();
     $prophecy = $prophet->prophesize();
     $prophecy->willExtend(PluginRegistry::class);
     $prophecy->getMap()->willReturn(self::$pluginData);
     $testPluginService->setRegistry($prophecy->reveal());
     return $testPluginService;
 }