@Test
public void testWriteStringsFileSystem() throws IOException {

  URI uri = tmp.toURI();
  Configuration conf = new Configuration();
  FileSystem fs = FileSystem.get(uri, conf);
  Path testPath = new Path(new Path(uri), "writestrings.out");
  Collection<String> write = Arrays.asList("over", "the", "lazy", "dog");
  FileUtil.write(fs, testPath, write, StandardCharsets.UTF_8);
  List<String> read =
      FileUtils.readLines(new File(testPath.toUri()), StandardCharsets.UTF_8);
  assertEquals(write, read);
}