@Test
public void testDeleteObjects() throws IOException {

  List<StorageResourceId> ids =
      Lists.newArrayList(ITEM_A_A.getResourceId(), ITEM_B_A.getResourceId());
  // Prepare the cache.
  cache.putItem(ITEM_A_A); // Deleted.
  cache.putItem(ITEM_B_A); // Deleted.
  cache.putItem(ITEM_B_B); // Not deleted.
  gcs.deleteObjects(ids);
  // Verify the delegate call.
  verify(gcsDelegate).deleteObjects(eq(ids));
  // Verify the state of the cache.
  assertThat(cache.getAllItemsRaw()).containsExactly(ITEM_B_B);
}