void () { VirtualFile m = createModulePom("m", """ <groupId>test</groupId> <artifactId>m</artifactId> <version>1</version> <dependencies> <dependency> <groupId>test</groupId> <artifactId>dep</artifactId> <version>1</version> </dependency> </dependencies> """); VirtualFile dep = createModulePom("dep", """ <groupId>test</groupId> <artifactId>dep</artifactId> <version>1</version> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.0</version> </dependency> </dependencies> """); importProjects(m, dep); assertModules("m", "dep"); assertModuleModuleDeps("m", "dep"); setupJdkForModules("m", "dep"); createOutputDirectories(); Module module = getModule("m"); VirtualFile[] jdkRoots = ModuleRootManager.getInstance(module).getSdk().getRootProvider().getFiles(OrderRootType.CLASSES); VirtualFile[] junitRoots = LibraryTablesRegistrar.getInstance().getLibraryTable(myProject).getLibraryByName("Maven: junit:junit:4.0") .getFiles(OrderRootType.CLASSES); assertOrderedEquals(OrderEnumerator.orderEntries(module).getAllLibrariesAndSdkClassesRoots(), ArrayUtil.mergeArrays(jdkRoots, junitRoots)); }