TabWidgetImpl extends Composite implements TabWidget, ClickHandler { @Override public void unSelect() { getElement().getStyle().clearBackgroundColor(); tabTitle.removeStyleName(resources.runnerCss().activeTabText()); removeStyleName(resources.runnerCss().activeTab()); addStyleName(resources.runnerCss().notActiveTabText()); } @Inject  TabWidgetImpl(RunnerResources resources,
                         @NotNull @Assisted String title,
                         @NotNull @Assisted TabType tabType); @Override void select(@NotNull Background background); @Override void unSelect(); @Override void setDelegate(@NotNull ActionDelegate delegate); @Override void onClick(ClickEvent event);  }
@Test public void widgetShouldBeUnSelected() throws Exception { widget.unSelect(); verify(widget.tabTitle).removeStyleName(SOME_TEXT); RunnerResources.RunnerCss css = resources.runnerCss(); verify(css).activeTabText(); verify(css).activeTab(); verify(css).notActiveTabText(); }