  @Test public void shouldSetTabsFromPagerAdapterInstance() {

    // given
    IconTabLayout iconTabLayout = new IconTabLayout(RuntimeEnvironment.application);

    // when
    iconTabLayout.setTabsFromPagerAdapter(pagerAdapter);

    // then
    assertThat(iconTabLayout.getTabAt(0)).hasIcon(null).hasText("barbers");
    assertThat(iconTabLayout.getTabAt(1)).hasIcon(null).hasText("lumberjacks");
  }