ImageViewTarget extends ViewTarget<ImageView> { @Override public ViewTarget<ImageView> fade() { return animation(new ImageViewCrossFadeAnimation()); } ImageViewTarget(ImageView imageView);  ImageViewTarget(MirageRequest request, ImageView imageView); @Override ViewTarget<ImageView> fade();  }
@Test public void testFadeCreatesAnimation() { ImageView imageView = new ImageView(RuntimeEnvironment.application); ImageViewTarget target = new ImageViewTarget(imageView); target.placeHolder(new ColorDrawable(Color.RED)); target.error(new ColorDrawable(Color.BLUE)); Assert.assertNull(target.animation()); target.fade(); Assert.assertNotNull(target.animation()); }