AnimationTracker { public void incrementAnimationViewCount(String key) { animationCounter.incrementCount(key); } AnimationTracker(AnimationCounter animationCounter, CountDownTimerFactory timerFactory); boolean isTheStartOfANewAnimationSet(final String key, long duration); void incrementAnimationViewCount(String key); long getCount(String key); void reset(String key); void saveDuration(String key, long duration); long getCurrentDuration(String key, Act act);  }
@Test public void whenIncrementViewCountThenDelegatesToCounter() throws Exception { String expectedKey = "TestKey"; tracker.incrementAnimationViewCount(expectedKey); verify(mockCounter).incrementCount(expectedKey); }