void (List<IndexableFilesIterator> actualIterators, Collection<IndexableFilesIterator> expectedIterators) { assertEquals(expectedIterators.size(), actualIterators.size()); Collection<Pair<IndexableSetOrigin, IndexableIteratorPresentation>> expectedOrigins = collectOriginsAndPresentations(expectedIterators); Collection<Pair<IndexableSetOrigin, IndexableIteratorPresentation>> actualOrigins = collectOriginsAndPresentations(actualIterators); assertSameElements(actualOrigins, expectedOrigins); }