private static FileBinaryResource writeToStorage(
      final DefaultDiskStorage storage, final String resourceId, final byte[] value)
      throws IOException {
    DiskStorage.Inserter inserter = storage.insert(resourceId, null);
    writeToResource(inserter, value);
    return (FileBinaryResource) inserter.commit(null);
  }
Test the iterator returned is ok and deletion through the iterator is ok too. This is the
required functionality that eviction needs.

@throws Exception
imagepipeline-base/src/test/java/com/facebook/cache/disk/DefaultDiskStorageTest.java