@Test
public void testWriteStringNoCharSetFileSystem() throws IOException {

  URI uri = tmp.toURI();
  Configuration conf = new Configuration();
  FileSystem fs = FileSystem.get(uri, conf);
  Path testPath = new Path(new Path(uri), "writestring.out");
  String write = "A" + "\u00ea" + "\u00f1" + "\u00fc" + "C";
  FileUtil.write(fs, testPath, write);
  String read = FileUtils.readFileToString(new File(testPath.toUri()),
      StandardCharsets.UTF_8);
  assertEquals(write, read);
}