SimpleAnimator { protected void startAnimation() { startAnimation(null); } protected  SimpleAnimator(View view, int anim);   }
@Test public void testStartAnimationWithListener() throws Exception { listener = mock(Animation.AnimationListener.class); simpleAnimator.startAnimation(listener); verify(view).startAnimation(animation); }
@Test public void testStartAnimation() throws Exception { simpleAnimator.startAnimation(); verify(animation, never()).setAnimationListener(listener); verify(view).startAnimation(animation); }