### Question:
TimeRefreshNotifier extends AnimationChangeAdapter implements QuietCloseable, ActiveTimeSpanChangeListener { @Override public void activeTimeSpansChanged(ActiveTimeSpans active) { synchronized (myListener) { myListener.refresh(false); } } TimeRefreshNotifier(RefreshListener refreshListener, TimeManager timeManager, AnimationManager animationManager); @Override void activeTimeSpansChanged(ActiveTimeSpans active); @Override void close(); @Override void commit(AnimationState state, Phaser phaser);  }### Answer:
@Test public void testActiveTimeSpansChanged() { EasyMockSupport support = new EasyMockSupport(); RefreshListener listener = createListener(support); TimeManager timeManager = createTimeManager(support); AnimationManager animationManager = createAnimationManager(support); ActiveTimeSpans active = createActive(support); support.replayAll(); try (TimeRefreshNotifier notifier = new TimeRefreshNotifier(listener, timeManager, animationManager)) { notifier.activeTimeSpansChanged(active); } support.verifyAll(); }