@Test
public void scanWithoutParent() throws Exception {

    boolean scannedJUnit = false;
    boolean scannedTest = false;
    
    defaultClassScanner = new DefaultClassScanner(sourceDirFilter, classNameFilter);
    Map<String, Class<?>> classes = defaultClassScanner.scan(Thread.currentThread().getContextClassLoader());
    
    verifyZeroInteractions(parent);
    
    assertTrue(classes.containsKey(Test.class.getName()));
    verify(sourceDirFilter, atLeast(1)).filter(sourceDirFilterParameter.capture());
    verify(classNameFilter, atLeast(1)).filter(classNameFilterParameter.capture());
    
    for (URI uri : sourceDirFilterParameter.getAllValues()) {
        if (uri.toURL().toExternalForm().matches(".*junit-.*\\.jar")) {
            scannedJUnit = true;
            break;
        }
    }
    if (!scannedJUnit) {
        fail();
    }
    
    for (String name : classNameFilterParameter.getAllValues()) {
        if (name.equals(Test.class.getName())) {
            scannedTest = true;
            break;
        }
    }
    if (!scannedTest) {
        fail();
    }
}