logger.info("Spring-Boot test configuration {}", config);
Pattern pattern = Pattern.compile(config.getUnitTestInclusionPattern());
logger.info("Scaning the classpath for test classes");
ClassPathScanningCandidateComponentProvider scanner = new ClassPathScanningCandidateComponentProvider(false);
scanner.addIncludeFilter(new RegexPatternTypeFilter(pattern));
<BUG>List<String> testClasses = new LinkedList<>(scanner.findCandidateComponents(config.getUnitTestBasePackage()).stream().map(bd -> bd.getBeanClassName()).collect(Collectors.toList()));
if (config.getUnitTestExclusionPattern() != null) {</BUG>
Pattern exclusionPattern = Pattern.compile(config.getUnitTestExclusionPattern());
for (Iterator<String> it = testClasses.iterator(); it.hasNext();) {
String cn = it.next();

logger.info("Spring-Boot test configuration {}", config);
Pattern pattern = Pattern.compile(config.getUnitTestInclusionPattern());
logger.info("Scaning the classpath for test classes");
ClassPathScanningCandidateComponentProvider scanner = new ClassPathScanningCandidateComponentProvider(false);
scanner.addIncludeFilter(new RegexPatternTypeFilter(pattern));
Set<BeanDefinition> defs = scanner.findCandidateComponents(config.getUnitTestBasePackage());
List<String> testClasses = new LinkedList<>();
for (BeanDefinition bd : defs) {
testClasses.add(bd.getBeanClassName());
}
if (config.getUnitTestExclusionPattern() != null) {
Pattern exclusionPattern = Pattern.compile(config.getUnitTestExclusionPattern());
for (Iterator<String> it = testClasses.iterator(); it.hasNext();) {
String cn = it.next();
