### Question:
ButtonItem extends AbstractItem implements View.OnClickListener { @Override public final void onBindView(View view) { throw new UnsupportedOperationException("Cannot bind to ButtonItem's view"); } 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 testOnBindView() { ButtonItem item = new ButtonItem(); try { item.onBindView(new View(context)); fail("Calling onBindView on ButtonItem should throw UnsupportedOperationException"); } catch (UnsupportedOperationException e) { } }