void () { final String basePath = JavaTestUtil.getJavaTestDataPath() + "/psi/libraryOrder/"; final VirtualFile lib1SrcFile = refreshAndFindFile(basePath + "lib1/src"); final VirtualFile lib1classes = refreshAndFindFile(basePath + "lib1/classes"); final VirtualFile lib2SrcFile = refreshAndFindFile(basePath + "lib2/src"); final VirtualFile lib2classes = refreshAndFindFile(basePath + "lib2/classes"); assertTrue(lib1SrcFile != null); assertTrue(lib2SrcFile != null); addLibraryWithSourcePath("lib1", lib1classes, lib1SrcFile); addLibraryWithSourcePath("lib2", lib2classes, lib2SrcFile); final List<VirtualFile> list = Arrays.asList(OrderEnumerator.orderEntries(myModule).getClassesRoots()); assertTrue(list.contains(lib1classes)); assertTrue(list.contains(lib2classes)); }