@Test
public void lazyReadFileAtSpecificGeneration_fails_whenReadConsistencyStrict()
    throws IOException {

  long generation = 5L;
  MockHttpTransport transport = mockTransport(jsonErrorResponse(ErrorResponses.NOT_FOUND));
  List<HttpRequest> requests = new ArrayList<>();
  Storage storage = new Storage(transport, JSON_FACTORY, requests::add);
  GoogleCloudStorageReadOptions options =
      GoogleCloudStorageReadOptions.builder().setFastFailOnNotFound(false).build();
  GoogleCloudStorageReadChannel readChannel = createReadChannel(storage, options, generation);
  assertThrows(FileNotFoundException.class, () -> readChannel.size());
}