@Test
public void testSourceAsMemory() {

    CrossFadeAnimation anim = new CrossFadeAnimation();
    View view = Mockito.mock(View.class);
    boolean setsDirectly = anim.animate(view,
            new ColorDrawable(Color.BLUE), Mirage.Source.MEMORY);
    Assert.assertFalse(setsDirectly);
    Mockito.verify(view, Mockito.times(0)).getBackground();
}