@Test
public void testPeekProgressBar() {

    ProgressBarMixin mixin = new ProgressBarMixin(mTemplateLayout);
    assertNull("PeekProgressBar should return null when stub not inflated yet",
            mixin.peekProgressBar());
    mixin.setShown(true);
    assertNotNull("PeekProgressBar should be available after setting to shown",
            mixin.peekProgressBar());
}