@Test
public void testAddSpace() {

    ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout);
    mixin.addButton("foo", R.style.SuwGlifButton_Secondary);
    final View space = mixin.addSpace();
    mixin.addButton("bar", R.style.SuwGlifButton_Primary);
    space.setTag("space");
    assertNotNull(mStubParent.findViewWithTag("space"));
    assertEquals("Space should have weight of 1",
            1f, ((LinearLayout.LayoutParams) space.getLayoutParams()).weight, 0.001);
}