title: JMockit multiple generic interface injectable causes missing injectable for field
body: <p>I am trying to mock a generic interface resource that has multiple options in one class. I found something that gets passed the named resources, that being to name the variable the same as the name parameter on the Resource. But if I have two @Injectable fields that have the same name (but different generic types) I cannot do this for both. Is there a way around this?</p>
  
  <pre><code>@Service("SourceDescriptionService")
  public class SourceDescriptionServiceImpl implements CrudService&lt;LnssDescription&gt; {
      @Resource(name = "LnssCrudRepository")
      private LnssCrudRepository&lt;LnssDescription&gt; descriptionRepository;
  
      @Resource(name = "SourceRepository")
      private SourceRepository sourceRepository;
  
      @Resource(name = "LnssCruRepository")
      private LnssCruRepository&lt;LnssState&gt; stateRepository;
  
      @Resource(name = "LnssCruRepository")
      private LnssCruRepository&lt;LnssVariant&gt; variantRepository;
  </code></pre>
  
  <p>And my attempt at testing:</p>
  
  <pre><code>@Tested
  private SourceDescriptionServiceImpl sut;
  
  @Injectable
  private SourceRepository SourceRepository;
  
  @Injectable
  private LnssCrudRepository&lt;LnssDescription&gt; LnssCrudRepository;
  
  @Injectable
  private LnssCruRepository&lt;?&gt; LnssCruRepository;
  </code></pre>
  
  <p>I've tried other variations on the CruRepository interface like parameterizing the LnssState, which then gives LnssVariant as the error or removing the parameterization which just goes back to the state being the error.</p>
  
  <p>This is the error:</p>
  
  <pre><code>java.lang.IllegalStateException: Missing @Injectable for field "com.ln.sourceset.model.repository.LnssCruRepository&lt;com.ln.sourceset.model.data.LnssState&gt; stateRepository" in SourceDescriptionServiceImpl
  </code></pre>
  
  <p>Any help would be greatly appreciated! Thanks.</p>