@Test
public void testSourceAsMemory() {

    ImageViewCrossFadeAnimation anim = new ImageViewCrossFadeAnimation();
    ImageView imageView = Mockito.mock(ImageView.class);
    boolean setsDirectly = anim.animate(imageView,
            new ColorDrawable(Color.BLUE), Mirage.Source.MEMORY);
    Assert.assertFalse(setsDirectly);
    Mockito.verify(imageView, Mockito.times(0)).getDrawable();
}