public void addListener(OnTickListener listener) {
    listeners.put(listener, listener);
  }
Add a clock that will get called before {@link #listeners}, in order to guarantee call order.
imagepipeline-base-test/src/main/java/com/facebook/imagepipeline/testing/FakeClock.java