@Test
  public void testMultiplexRequestFailure() {
    mMultiplexProducer.produceResults(mConsumer1, mProducerContext1);
    mMultiplexProducer.produceResults(mConsumer2, mProducerContext1);
    mForwardingConsumer1.onFailure(mException);
    verify(mConsumer1).onFailure(mException);
    verify(mConsumer2).onFailure(mException);
    assertTrue(mMultiplexProducer.mMultiplexers.isEmpty());
  }
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