private FileStatus[] generateTestNotEmptyFileStatuses(Set<String> emptyFiles, String... fileNames) {
    FileStatus[] manifestFiles = new FileStatus[fileNames.length];
    for (int i = 0; i < fileNames.length; i++) {
      long len = 10000L;
      if (emptyFiles != null && emptyFiles.contains(fileNames[i])) {
        len = 0L;
      }
      manifestFiles[i] = new FileStatus(len, false, 0, 250L, 123456L, new Path("/sometestpath/" + fileNames[i]));
    }
    return manifestFiles;
  }
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