public class ConfigClasspathScanTest {
@Test
public void test_folder_scan() throws IOException {
InstanceOfFilter filter = new InstanceOfFilter(Configuration.class);
ClasspathScanner scanner = new ClasspathScanner(filter);
// If running this test inside your IDE... you need to set the cwd to be the
// root of the config module !!
scanner.scan(new File("./target/classes").toURI().toURL());
List<Class<?>> classes = filter.getMatchedTypes();
Assert.assertTrue(classes.contains(Configuration.class));
Assert.assertTrue(classes.contains(BaseConfiguration.class));
Assert.assertTrue(classes.contains(DOMConfiguration.class));