@Test
public void testSetBackground() throws Exception {

    Drawable drawable = Mockito.mock(Drawable.class);
    ViewHelper.setBackground(mCacheView, NULL_VIEW_ID, drawable);
    ViewHelper.setBackground(mCacheView, VIEW_ID, drawable);
    ViewHelper.setBackground(mCacheView, IMAGEVIEW_ID, drawable);
    ViewHelper.setBackground(mCacheView, TEXTVIEW_ID, drawable);
    verify(mView).setBackgroundDrawable(drawable);
    verify(mImageView).setBackgroundDrawable(drawable);
    verify(mTextView).setBackgroundDrawable(drawable);
    verifyNoMoreInteractions(mView, mImageView, mTextView);
}