@Test
public void read_whenBufferIsEmpty() throws IOException {

  ByteBuffer emptyBuffer = ByteBuffer.wrap(new byte[0]);
  Storage storage = new Storage(HTTP_TRANSPORT, JSON_FACTORY, r -> {});
  GoogleCloudStorageReadChannel readChannel =
      createReadChannel(storage, newLazyReadOptionsBuilder().build());
  assertThat(readChannel.read(emptyBuffer)).isEqualTo(0);
}