/**
  * @param string $service
  * @return string
  * @throws \BadMethodCallException
  */
 protected function detectClass($service)
 {
     return DefinitionLoader::getClassName($service, $this);
 }
 protected function tearDown()
 {
     array_map('unlink', glob(__DIR__ . '/../Fixtures/cache/test/*.[php|xml]*'));
     DefinitionLoader::unload();
 }