@Test
public void testAddButton() {

    ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout);
    final Button button = mixin.addButton("foobar", R.style.SuwGlifButton_Primary);
    assertNotNull(button);
    @IdRes final int id = 12345;
    button.setId(id);
    assertNotNull(mStubParent.findViewById(id));
    assertEquals("foobar", button.getText());
    // Make sure the style is applied by checking the paddings
    assertEquals(dp2Px(16), button.getPaddingLeft());
    assertEquals(dp2Px(16), button.getPaddingRight());
}