@Test
public void open_gzipContentEncoding_succeeds_whenContentEncodingSupported() throws Exception {

  MockHttpTransport transport =
      mockTransport(
          jsonDataResponse(
              newStorageObject(BUCKET_NAME, OBJECT_NAME).setContentEncoding("gzip")));
  Storage storage = new Storage(transport, JSON_FACTORY, r -> {});
  GoogleCloudStorageReadOptions readOptions =
      GoogleCloudStorageReadOptions.builder().setSupportGzipEncoding(true).build();
  try (GoogleCloudStorageReadChannel channel = createReadChannel(storage, readOptions)) {
    channel.position();
  }
}