@Test
public void testPartialScanWithExclude()
{

    File baseDir = new File("src/test/resources/project/master");
    //try more complicated include
    ScanConfiguration scanConfig = PropertiesFactory.eINSTANCE.createScanConfiguration();
    scanConfig.setExclude("**/jabylon/properties/util/autotranslate/*.properties");
    WorkspaceScanner scanner = new WorkspaceScanner();
    final List<String> filenames = new ArrayList<String>();
    scanner.partialScan(new PropertyFileAcceptor() {
        @Override
        public void newMatch(File file) {
            filenames.add(file.getName());
        }
    }, baseDir, new JavaPropertyScanner(), scanConfig, new File("src/test/resources/project/master/org/jabylon/properties/util/autotranslate/messages.properties"));
    assertEquals(0, filenames.size());
}