### Question:
ButtonItem extends AbstractItem implements View.OnClickListener { public void setText(CharSequence text) { this.text = text; } 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 testSetText() { TestButtonItem item = new TestButtonItem(); item.setText("lorem ipsum"); final Button button = item.createButton(parent); assertWithMessage("ButtonItem text should be \"lorem ipsum\"") .that(item.getText().toString()) .isEqualTo("lorem ipsum"); assertWithMessage("Button text should be \"lorem ipsum\"") .that(button.getText().toString()) .isEqualTo("lorem ipsum"); }