@Test
public void testListObjectInfoAlt() throws IOException {

  List<GoogleCloudStorageItemInfo> expected = Lists.newArrayList(ITEM_B_A, ITEM_B_B);
  List<GoogleCloudStorageItemInfo> result =
      gcs.listObjectInfo(
          BUCKET_B, /* objectNamePrefix= */ null, ListObjectOptions.DEFAULT_FLAT_LIST);
  // Verify the delegate call.
  verify(gcsDelegate)
      .listObjectInfo(
          eq(BUCKET_B),
          ArgumentMatchers.eq(null),
          ArgumentMatchers.eq(ListObjectOptions.DEFAULT_FLAT_LIST));
  // Verify the result.
  assertThat(result).containsExactlyElementsIn(expected);
  // Verify the state of the cache.
  assertThat(cache.getAllItemsRaw()).containsExactlyElementsIn(expected);
}