private static File write(DefaultDiskStorage storage, String resourceId, byte[] content)
      throws IOException {
    DiskStorage.Inserter inserter = storage.insert(resourceId, null);
    File file = ((DefaultDiskStorage.InserterImpl) inserter).mTemporaryFile;
    FileOutputStream fos = new FileOutputStream(file);
    try {
      fos.write(content);
    } finally {
      fos.close();
    }
    return ((FileBinaryResource) inserter.commit(null)).getFile();
  }
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