@Test
public void sizeFailsOnClosedChannel() throws Exception {

  GoogleCloudStorageGrpcReadChannel readChannel = newReadChannel();
  readChannel.close();
  assertThrows(ClosedChannelException.class, readChannel::size);
}