@Test
public void testGetItemInfosNoneCached() throws IOException {

  List<StorageResourceId> requestedIds =
      Lists.newArrayList(ITEM_A_A.getResourceId(), ITEM_A_B.getResourceId());
  List<GoogleCloudStorageItemInfo> expected = Lists.newArrayList(ITEM_A_A, ITEM_A_B);
  List<GoogleCloudStorageItemInfo> result = gcs.getItemInfos(requestedIds);
  // Verify the delegate call.
  verify(gcsDelegate).getItemInfos(eq(requestedIds));
  // Verify the result and its ordering.
  assertThat(result).containsExactlyElementsIn(expected).inOrder();
  // Verify the state of the cache.
  assertThat(cache.getAllItemsRaw()).containsExactlyElementsIn(expected);
}