@Test
public void initMetadata_succeeds_whenReadConsistencyEnabledAndGenerationIsValid()
    throws IOException {

  Storage storage = new Storage(HTTP_TRANSPORT, JSON_FACTORY, r -> {});
  GoogleCloudStorageReadOptions options =
      newLazyReadOptionsBuilder()
          .build();
  GoogleCloudStorageReadChannel readChannel = createReadChannel(storage, options);
  readChannel.initMetadata("gzip", /* sizeFromMetadata= */ 1, /* generation= */ 1234L);
}