@Test
public void testPartialScan() throws Exception {

    File baseDir = new File("src/test/resources/project/master");
    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(), PropertiesFactory.eINSTANCE.createScanConfiguration(), new File("src/test/resources/project/master/org/jabylon/properties/util/autotranslate/messages.properties"));
    int index = 0;
    assertEquals(1, filenames.size());
    assertEquals("messages.properties", filenames.get(index++));
}