void () { File contentRoot = new File(myRoot, "project"); File excluded = new File(contentRoot, "exc"); File unexcluded = new File(excluded, "src"); JpsModule module = addModule(); addContentRoot(module, contentRoot); addExcludedRoot(module, excluded); addContentRoot(module, unexcluded); assertNotExcluded(contentRoot); assertExcluded(excluded); assertNotExcluded(unexcluded); ModuleExcludeIndexImpl index = createIndex(); assertFalse(index.isExcludedFromModule(contentRoot, module)); assertTrue(index.isExcludedFromModule(excluded, module)); assertFalse(index.isExcludedFromModule(unexcluded, module)); }