void () { UnindexedFilesIndexer merged = task1.tryMergeWith(task2); String task1Reason = task1.getIndexingReason(); String task2Reason = task2.getIndexingReason(); assertEquals("Merged " + task1Reason + " with " + task2Reason, merged.getIndexingReason()); merged = merged.tryMergeWith(task2); assertEquals("Merged " + task1Reason + " with " + task2Reason + " with " + task2Reason, merged.getIndexingReason()); }