private void writeTextFile(Path file, String content) throws IOException {
    OutputStreamWriter writer = new OutputStreamWriter(fileSystem.create(file));
    writer.write(content);
    writer.close();
  }
Writes the given string to the given file.
ql/src/test/org/apache/hadoop/hive/ql/io/TestSymlinkTextInputFormat.java