@Test
public void testGetItemInfo() throws IOException {

  // Prepare the cache.
  cache.putItem(ITEM_A_A);
  GoogleCloudStorageItemInfo result = gcs.getItemInfo(ITEM_A_A.getResourceId());
  // Verify the cached item was returned.
  assertThat(result).isEqualTo(ITEM_A_A);
  // Verify the state of the cache.
  assertThat(cache.getAllItemsRaw()).containsExactly(ITEM_A_A);
}