static public void createInputFile(FileSystem fs, String fileName,
                     String[] inputData) throws IOException {
    Path path = new Path(fileName);
    if (fs.exists(path)) {
      throw new IOException("File " + fileName + " already exists on the minicluster");
    }
    FSDataOutputStream stream = fs.create(path);
    PrintWriter pw = new PrintWriter(new OutputStreamWriter(stream, "UTF-8"));
    for (int i = 0; i < inputData.length; i++) {
      pw.println(inputData[i]);
    }
    pw.close();

  }
Throw RunTimeException if isSetup is false
hcatalog/core/src/test/java/org/apache/hive/hcatalog/MiniCluster.java