private static void writeToResource(DiskStorage.Inserter inserter, final byte[] content)
      throws IOException {
    inserter.writeData(
        new WriterCallback() {
          @Override
          public void write(OutputStream os) throws IOException {
            os.write(content);
          }
        },
        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