@SuppressLint("NewApi")
@Test
public void testImageViewTarget() {

    CrossFadeAnimation anim = new CrossFadeAnimation();
    View view = Mockito.mock(View.class);
    boolean setsDirectly = anim.animate(view,
            new ColorDrawable(Color.BLUE), Mirage.Source.DISK);
    Assert.assertTrue(setsDirectly);
    Mockito.verify(view, Mockito.times(1)).getBackground();
    Mockito.verify(view, Mockito.times(1)).setBackground((Drawable) Mockito.any());
}