title: Test reusable bundle for symfony 4
body: <p>I try to create a reusable bundle with one service who implement an interface and one annotation.
  In DependencyInjection I create Configuration class with the method getConfigTreeBuilder </p>
  
  <pre><code>public function getConfigTreeBuilder()
  {
      $treeBuilder = new TreeBuilder();
      $treeBuilder-&gt;root('sow_binding', 'array');
      return $treeBuilder;
  }
  </code></pre>
  
  <p>and Extension class who load services.yaml in config directory.</p>
  
  <pre><code>public function load(array $configs, ContainerBuilder $container)
  {
      $loader = new YamlFileLoader(
          $container,
          new FileLocator(__DIR__.'/../Resources/config')
      );
      $loader-&gt;load('services.yaml');
  }
  </code></pre>
  
  <p>I created one test who create a fake class who use my annotation and my service but I get this message when I execute it : </p>
  
  <pre><code>Error : Class 'SOW\BindingBundle\Service\BindingService' not found
  </code></pre>
  
  <p>In my test I instantiated my service like this (with right import) :</p>
  
  <pre><code>$bindingService = new BindingService($reader, 'SOW\Annotation\Binding');
  </code></pre>
  
  <p>Here my services.yaml file :</p>
  
  <pre><code>parameters:
      binding.annotation.class: SOW\Annotation\Binding
  
  services:
      SOW\BindingBundle\Service\BindingService:
          alias: sow_binding.binder
          public: true
          arguments:
              - "@annotations.reader"
              - "%app.binding.annotation.class%"
  </code></pre>
  
  <p>Why my test can't find my service ?</p>