@Test
public void testListObjectInfo() throws IOException {

  List<GoogleCloudStorageItemInfo> expected = Lists.newArrayList(ITEM_A_A, ITEM_A_AA, ITEM_A_ABA);
  List<GoogleCloudStorageItemInfo> result =
      gcs.listObjectInfo(BUCKET_A, PREFIX_A, ListObjectOptions.DEFAULT_FLAT_LIST);
  // Verify the delegate call.
  verify(gcsDelegate)
      .listObjectInfo(eq(BUCKET_A), eq(PREFIX_A), eq(ListObjectOptions.DEFAULT_FLAT_LIST));
  assertThat(result).containsExactlyElementsIn(expected);
  // Verify the state of the cache.
  assertThat(cache.getAllItemsRaw()).containsExactlyElementsIn(expected);
}