void (LibraryOrderEntry lib, OrderRootType type, List<String> paths) { assertNotNull(lib); if (paths == null) return; assertUnorderedPathsAreEqual(Arrays.asList(lib.getRootUrls(type)), paths); // also check the library because it may contain slight different set of urls (e.g. with duplicates) final Library library = lib.getLibrary(); assertNotNull(library); assertUnorderedPathsAreEqual(Arrays.asList(library.getUrls(type)), paths); }