@Test
  public void testAddConsumerDoesNotChangeIsPrefetchIfPrefetch() {
    mProducerContext1.setIsPrefetch(false);
    mProducerContext2.setIsPrefetch(true);
    mMultiplexProducer.produceResults(mConsumer1, mProducerContext1);
    assertFalse(mMultiplexedContext1.isPrefetch());
    mMultiplexProducer.produceResults(mConsumer1, mProducerContext2);
    assertFalse(mMultiplexedContext1.isPrefetch());
  }
An extra flag to check we maintain other flags than just whether this is the last result
imagepipeline/src/test/java/com/facebook/imagepipeline/producers/MultiplexProducerTest.java