@Test
public void eagerReadFileAtSpecificGeneration_succeeds_whenReadConsistencyStrict()
    throws IOException {

  long generation = 5L;
  MockHttpTransport transport =
      mockTransport(
          jsonDataResponse(newStorageObject(BUCKET_NAME, OBJECT_NAME).setGeneration(generation)));
  List<HttpRequest> requests = new ArrayList<>();
  Storage storage = new Storage(transport, JSON_FACTORY, requests::add);
  GoogleCloudStorageReadOptions options =
      GoogleCloudStorageReadOptions.builder().setFastFailOnNotFound(true).build();
  GoogleCloudStorageReadChannel readChannel = createReadChannel(storage, options, generation);
  assertThat(readChannel.generation()).isEqualTo(generation);
}