@Test
public void testListBucketInfo() throws IOException {

  List<GoogleCloudStorageItemInfo> expected = Lists.newArrayList(ITEM_A, ITEM_B);
  List<GoogleCloudStorageItemInfo> result = gcs.listBucketInfo();
  // Verify the delegate call.
  verify(gcsDelegate).listBucketInfo();
  assertThat(result).containsExactlyElementsIn(expected);
  // Verify the state of the cache.
  assertThat(cache.getAllItemsRaw()).containsExactlyElementsIn(expected);
}