public static void popupViewAnimation(View... views) {
    int offset = 500;
    final int offsetInterval = 200;
    for (View view : views) {
      if (view != null) {
        Animation animation = AnimationUtils.loadAnimation(view.getContext(), R.anim.link_popup);
        animation.setStartOffset(offset);
        view.startAnimation(animation);
      }
      offset += offsetInterval;
    }
  }
@Test
  public void testPopupAnimation() {
    View v1 = Mockito.mock(View.class);
    View v2 = Mockito.mock(View.class);
    Mockito.doReturn(mApplication).when(v1).getContext();
    Mockito.doReturn(mApplication).when(v2).getContext();

    SetupSupport.popupViewAnimation(v1, v2);

    ArgumentCaptor<Animation> animation1Captor = ArgumentCaptor.forClass(Animation.class);
    ArgumentCaptor<Animation> animation2Captor = ArgumentCaptor.forClass(Animation.class);
    Mockito.verify(v1).startAnimation(animation1Captor.capture());
    Mockito.verify(v2).startAnimation(animation2Captor.capture());

    Animation animation1 = animation1Captor.getValue();
    Animation animation2 = animation2Captor.getValue();

    Assert.assertEquals(500, animation1.getStartOffset());
    Assert.assertEquals(700, animation2.getStartOffset());
  }