@Test
public void testCreateButtonTwice() {

    TestButtonItem item = new TestButtonItem();
    final Button button = item.createButton(mParent);
    FrameLayout frameLayout = new FrameLayout(mContext);
    frameLayout.addView(button);
    final Button button2 = item.createButton(mParent);
    assertSame("createButton should be reused", button, button2);
    assertNull("Should be removed from parent after createButton", button2.getParent());
}