@Test
  public void testSelectManifestFilesWithWrongManifestNames() {
    FileStatus[] manifestFiles = generateTestNotEmptyFileStatuses("000004_0.manifest", "000005.manifest",
        "000004_1.manifest", "000006.manifest", "000007_0.wrong", "000008_1", "000004_2.manifest");
    Set<String> expectedPathes = getExpectedPathes("000005.manifest", "000006.manifest", "000004_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