GalleryImageView extends FrameLayout implements Target { @Override public void onPrepareLoad(Drawable placeHolderDrawable) { imageView.setImageResource(android.R.color.transparent); progressBar.setVisibility(View.VISIBLE); } GalleryImageView(Context context);   GalleryImageView(Context context, MultiTouchImageView imageView, ProgressBar progressBar); void setSwipeToDismissCallback(SwipeToDismissTouchListener.Callback callback); @Override void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from); @Override void onBitmapFailed(Drawable errorDrawable); @Override void onPrepareLoad(Drawable placeHolderDrawable);  }
@Test public void testOnPrepareLoad() { subject.onPrepareLoad(drawable); verify(subject.imageView).setImageResource(android.R.color.transparent); verify(subject.progressBar).setVisibility(View.VISIBLE); }