IconMixin implements Mixin { protected ImageView getView() { return (ImageView) mTemplateLayout.findManagedViewById(R.id.suw_layout_icon); } IconMixin(TemplateLayout layout, AttributeSet attrs, int defStyleAttr); void setIcon(Drawable icon); Drawable getIcon();  }
@Test public void testGetIconView() { IconMixin mixin = new IconMixin(mTemplateLayout, null, 0); assertSame(mIconView, mixin.getView()); }