@Test
public void getItemInfoReturnsNullBeforeClose() throws Exception {

  GoogleCloudStorageGrpcWriteChannel writeChannel = newWriteChannel();
  ByteString data = ByteString.copyFromUtf8("test data");
  writeChannel.initialize();
  writeChannel.write(data.asReadOnlyByteBuffer());
  assertNull(writeChannel.getItemInfo());
}