@Test
public void testFullScanWithFileExcude() {

    File baseDir = new File("src/test/resources/project/master");
    ScanConfiguration configuration = PropertiesFactory.eINSTANCE.createScanConfiguration();
    configuration.setExclude("**/wiki_examp*.properties");
    WorkspaceScanner scanner = new WorkspaceScanner();
    final List<String> filenames = new ArrayList<String>();
    scanner.fullScan(new PropertyFileAcceptor() {
        @Override
        public void newMatch(File file) {
            filenames.add(file.getName());
        }
    }, baseDir, new JavaPropertyScanner(), configuration, new NullProgressMonitor());
    int index = 0;
    assertEquals("messages.properties", filenames.get(index++));
    assertEquals("messages2.properties", filenames.get(index++));
    assertEquals("plugin.properties", filenames.get(index++));
    assertEquals("messages.properties", filenames.get(index++));
    assertEquals(4, filenames.size());
}