RemoveView { protected void setIconResId(int id) { buttonImage.setImageResource(id); } protected  RemoveView(Context context);   }
@Test public void testSetIconResId() { int iconResId = R.drawable.bottom_shadow; removeView.setIconResId(iconResId); verify(buttonImageMock).setImageResource(iconResId); }