public class IntegrationTestConfiguration {
public static class ComponentFilter implements TypeFilter {
@Override
public boolean match(MetadataReader mdr, MetadataReaderFactory arg1) throws IOException {
String clsname = mdr.getClassMetadata().getClassName();
ComponentScan cs = IntegrationTestConfiguration.class.getAnnotation(ComponentScan.class);
return includedInBasePackageClasses(clsname, cs);
}