TabContainerPresenter implements TabContainer, TabContainerView.ActionDelegate, PanelState.StateChangeListener { @Override public void showTabTitle(@NotNull String tabName, boolean isShown) { view.showTabTitle(tabName, isShown); } @Inject  TabContainerPresenter(TabContainerView view, PanelState panelState, RunnerLocalizationConstant locale); @Override void go(AcceptsOneWidget container); @Override void showTab(@NotNull String title); @Override void addTab(@NotNull Tab tab); @Override void showTabTitle(@NotNull String tabName, boolean isShown); @Override void setLocation(@NotNull PanelLocation panelLocation); @Override void onTabClicked(@NotNull String title); @Override void onStateChanged();  }
@Test public void tabTitleShouldBeShown() { tabContainerPresenter.showTabTitle(TITLE2, true); verify(view).showTabTitle(TITLE2, true); }