@Test
public void testSyncAfterClose() throws IOException {

  Path objectPath = new Path(ghfs.getFileSystemRoot(), "dir/object.txt");
  FSDataOutputStream fout = ghfs.create(objectPath);
  fout.close();
  assertThrows(ClosedChannelException.class, fout::hsync);
}