private URI createEmptyArchive() {
    try {
      File outputJar = new File(System.getProperty("build.test.dir"), "empty.jar");
      ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(outputJar));
      zos.close();
      return outputJar.toURI();
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
  }
Testing related; creates an empty archive to served being localized as hive-exec
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java