@Test
public void testGetGcsPath() throws URISyntaxException {

  GoogleHadoopFileSystemBase myghfs = (GoogleHadoopFileSystemBase) ghfs;
  URI gcsPath = new URI("gs://" + myghfs.getUri().getAuthority() + "/dir/obj");
  assertThat(myghfs.getGcsPath(new Path(gcsPath))).isEqualTo(gcsPath);
  assertThat(myghfs.getGcsPath(new Path("/buck^et", "object")))
      .isEqualTo(new URI("gs://" + myghfs.getUri().getAuthority() + "/buck%5Eet/object"));
}