@Nullable
    @Override
    public Void answer(InvocationOnMock invocation) throws Throwable {
      Consumer consumer = (Consumer) invocation.getArguments()[0];
      Iterator<EncodedImage> iterator = mResults.iterator();
      while (iterator.hasNext()) {
        EncodedImage result = iterator.next();
        consumer.onNewResult(
            result, BaseConsumer.simpleStatusForIsLast(!iterator.hasNext()) | mExtraStatusFlags);
      }
      return null;
    }
Checks basic properties of encoded memory cache producer operation, that is: - it delegates to
the {@link MemoryCache#get(Object)} - if {@link MemoryCache#get(Object)} is unsuccessful, then it
passes the request to the next producer in the sequence. - if the next producer returns the
value, then it is put into the disk cache. - responses from the next producer are passed back
down to the consumer.
imagepipeline/src/test/java/com/facebook/imagepipeline/producers/EncodedMemoryCacheProducerTest.java