@Test
public void testAddButtonTextRes() {

    ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout);
    final Button button = mixin.addButton(R.string.suw_next_button_label,
            R.style.SuwGlifButton_Primary);
    assertNotNull(button);
    button.setTag("button");
    assertNotNull(mStubParent.findViewWithTag("button"));
    assertEquals("Next", button.getText());
    // Make sure the style is applied by checking the paddings
    assertEquals(dp2Px(16), button.getPaddingLeft());
    assertEquals(dp2Px(16), button.getPaddingRight());
}