@Test
public void testRequireScrollWithNavigationBar() {

    final NavigationBar navigationBar = new NavigationBar(application);
    mRequireScrollMixin.requireScrollWithNavigationBar(navigationBar);
    mRequireScrollMixin.notifyScrollabilityChange(true);
    assertEquals("More button should be visible",
            View.VISIBLE, navigationBar.getMoreButton().getVisibility());
    assertEquals("Next button should be hidden",
            View.GONE, navigationBar.getNextButton().getVisibility());
    navigationBar.getMoreButton().performClick();
    verify(mDelegate).pageScrollDown();
    mRequireScrollMixin.notifyScrollabilityChange(false);
    assertEquals("More button should be hidden",
            View.GONE, navigationBar.getMoreButton().getVisibility());
    assertEquals("Next button should be visible",
            View.VISIBLE, navigationBar.getNextButton().getVisibility());
}