title: ComponentScan excludeFilters Not Working In Spring 4.0.6.RELEASE
body: <p>I have a class which I want to exclude while component scanning. I am using the below code to do that but that doesn't seem to work although everything seems to be right</p>
  
  <pre><code>@ComponentScan(basePackages = { "common", "adapter", "admin"}, excludeFilters = { @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = ServiceImpl.class) })
  </code></pre>
  
  <p>Actually I want have "ServiceImpl" class, which implements "Service" interface, is being used in my rest api logic and while doing the integration test of an api I want to exclude this implmentation and load the mocked implementation. But this doesn't seem to happen as even after using the above I am getting the below error</p>
  
  <pre><code>No qualifying bean of type [admin.Service] is defined: expected single matching bean but found 2: ServiceMockImpl,ServiceImpl
  </code></pre>
  
  <p>I spent too much of time on this but nothing works.</p>
  
  <p>Any help is appreciated.</p>