@Test
public void fastFailOnNotFoundFailsByReadWhenDisabled() {

  fakeService.setGetException(Status.NOT_FOUND.asException());
  GoogleCloudStorageReadOptions options =
      GoogleCloudStorageReadOptions.builder().setFastFailOnNotFound(false).build();
  ByteBuffer buffer = ByteBuffer.allocate(10);
  // If the user hasn't mandated fail fast, it is permissible for either open() or read() to
  // raise this exception.
  assertThrows(FileNotFoundException.class, () -> newReadChannel(options).read(buffer));
}