static File createFileInTempDir(String path) throws IOException {
    if (path == null || path.isEmpty()) {
      throw new RuntimeException("Unable to create file - Null or empty path!");
    }
    File file = new File(TMP_DIR, path);
    if (!file.exists()) {
      if (!file.mkdirs()) {
        throw new IOException("Failed to create file");
      }
    }
    return file;
  }
Creates a file, along with any parents (if any), in the system-specific Java temporary directory
If the file already exists, this method simply returns

@param path Path relative to the temporary directory
@return True, if the file was created successfully, along with parent files (if any)
@throws IOException
samza-core/src/test/java/org/apache/samza/testUtils/FileUtil.java