void () { Module module = createModule("a.iml", StdModuleTypes.JAVA); addDependentModule(module, DependencyScope.COMPILE); addLibrary(module, DependencyScope.COMPILE); GlobalSearchScope deps = module.getModuleWithDependentsScope(); GlobalSearchScope depsTests = module.getModuleTestsWithDependentsScope(); assertNotEquals(deps, depsTests); assertNotEquals(depsTests, deps); ((ModuleEx)module).clearScopesCache(); GlobalSearchScope deps2 = module.getModuleWithDependentsScope(); GlobalSearchScope depsTests2 = module.getModuleTestsWithDependentsScope(); assertNotEquals(deps2, depsTests2); assertNotEquals(depsTests2, deps2); assertNotSame(deps, deps2); assertNotSame(depsTests, depsTests2); assertEquals(deps, deps2); assertEquals(depsTests, depsTests2); }