@Test
public void readMultipleChunksSucceeds() throws Exception {

  // Enough to require multiple chunks.
  fakeService.setObject(DEFAULT_OBJECT.toBuilder().setSize(FakeService.CHUNK_SIZE * 2).build());
  GoogleCloudStorageGrpcReadChannel readChannel = newReadChannel();
  ByteBuffer buffer = ByteBuffer.allocate(FakeService.CHUNK_SIZE * 2);
  readChannel.read(buffer);
  verify(fakeService, times(1)).getObject(eq(GET_OBJECT_REQUEST), any());
  verify(fakeService, times(1)).getObjectMedia(eq(GET_OBJECT_MEDIA_REQUEST), any());
  assertArrayEquals(
      fakeService.data.substring(0, FakeService.CHUNK_SIZE * 2).toByteArray(), buffer.array());
}