@Test
public void testCloseTwice() throws IOException {

  Path objectPath = new Path(ghfs.getFileSystemRoot(), "dir/object.txt");
  FSDataOutputStream fout = ghfs.create(objectPath);
  fout.close();
  fout.close();  // Fine to close twice.
}