### Question:
ButtonItem extends AbstractItem implements View.OnClickListener { public void setTheme(int theme) { this.theme = theme; button = null; } ButtonItem();  ButtonItem(Context context, AttributeSet attrs); void setOnClickListener(OnClickListener listener); void setText(CharSequence text); CharSequence getText(); void setTheme(int theme); int getTheme(); void setEnabled(boolean enabled); @Override int getCount(); @Override boolean isEnabled(); @Override int getLayoutResource(); @Override final void onBindView(View view); @Override void onClick(View v);  }### Answer:
@Test public void testSetTheme() { TestButtonItem item = new TestButtonItem(); item.setTheme(R.style.SuwButtonItem_Colored); final Button button = item.createButton(parent); assertWithMessage("ButtonItem theme should be SuwButtonItem.Colored") .that(item.getTheme()) .isEqualTo(R.style.SuwButtonItem_Colored); assertThat(button.getContext().getTheme()).isNotNull(); }