title: CDI Unit Test fails with unsatisified dependency Exception for Qualifier Type
body: <p>Hi I have a following Qualifier Type defined.. </p>
  
  <pre><code>@Qualifier
  @Retention(RetentionPolicy.RUNTIME)
  @Target({ ElementType.TYPE, ElementType.FIELD })
  public @interface SortAndFilterType {
  
  /**
   * The value for the sort and filter.
   *
   * @return the sort and filter type value.
   */
  String value();
  }
  </code></pre>
  
  <p>And Two Implementations out of it.</p>
  
  <pre><code>@SortAndFilterType("Users")
  public class UserSortAndFilterProviderImpl implements SortAndFilterProvider&lt;Field, User&gt;       {}
  
  @SortAndFilterType("ReportsList")
  public class ReportListSortAndFilterProviderImpl implements SortAndFilterProvider&lt;Field, ReportList&gt; {}
  </code></pre>
  
  <p>And I'm injecting from the Client as ..</p>
  
  <pre><code>@Inject
  @SortAndFilterType("Users")
  private SortAndFilterProvider mSortAndFilterProvider;
  </code></pre>
  
  <p>Every thing works fine at run time.. </p>
  
  <p>But the Problem comes when I ran Unit tests.. </p>
  
  <p>I'm getting the below Exception..</p>
  
  <blockquote>
    <p>org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SortAndFilterProvider with qualifiers @SortAndFilterType
      at injection point [BackedAnnotatedField] @Inject @SortAndFilterType private com.collabnet.ctf.saturn.client.apps.users.ChangeUsersStatus.mSortAndFilterProvider</p>
  </blockquote>
  
  <p>I invoke this from unit tests like this..it runs with @RunWith(CdiRunner.class)</p>
  
  <pre><code>@Produces
  @SortAndFilterType("Users")
  @Mock
  private SortAndFilterProvider mSortAndFilterProvider;
  </code></pre>
  
  <p>Whats going wrong here?</p>