void () { ModifiableRootModel rootModel = createRootModel(); Library library = rootModel.getModuleLibraryTable().createLibrary(); VirtualFile vFile = addClassRoot(library); ValidFileCellAppearance appearance = (ValidFileCellAppearance)myService.forOrderEntry(myProject, getLastOrderEntry(rootModel), false); assertEquals(vFile, appearance.getFile()); }