void () { UnindexedFilesScanner t1 = createScanningTask(iter1, "reason 1", ScanningType.PARTIAL); UnindexedFilesScanner t2 = createScanningTask(iter2, "reason 2", ScanningType.PARTIAL); assertSameElements(mergeAsDumbTasks(t1, t2).getPredefinedIndexableFilesIterators(), Arrays.asList(iter1, iter2)); assertSameElements(mergeAsDumbTasks(t2, t1).getPredefinedIndexableFilesIterators(), Arrays.asList(iter1, iter2)); }