@Test
  public void testSelectManifestFilesMultipleAttemptIds() {
    FileStatus[] manifestFiles = generateTestNotEmptyFileStatuses("000000_1.manifest", "000000_0.manifest",
        "000000_3.manifest", "000000_2.manifest", "000003_0.manifest", "000003_1.manifest", "000003_2.manifest");
    Set<String> expectedPathes = getExpectedPathes("000000_3.manifest", "000003_2.manifest");
    List<Path> foundManifestFiles = Utilities.selectManifestFiles(manifestFiles);
    Set<String> resultPathes = getResultPathes(foundManifestFiles);
    assertEquals(expectedPathes, resultPathes);
  }
This test tests that Utilities.get*Tasks do not repeat themselves in the process
of extracting tasks from a given set of root tasks when given DAGs that can have
multiple paths, such as the case with Diamond-shaped DAGs common to replication.
ql/src/test/org/apache/hadoop/hive/ql/exec/TestUtilities.java