ItemWidgetImpl extends Composite implements ItemWidget, ClickHandler { @Override public void unSelect() { addStyleName(resources.runnerCss().runnerShadow()); removeStyleName(resources.runnerCss().runnerWidgetBorders()); } @Inject  ItemWidgetImpl(RunnerResources resources); @Override void select(); @Override void unSelect(); @Override void setDelegate(@NotNull ActionDelegate delegate); @Override void onClick(ClickEvent event); @Override void setName(@NotNull String name); @Override void setDescription(@Nullable String description); @Override void setStartTime(@NotNull String time); @Override void setImage(@NotNull SVGImage svgImageResource); @Override void setImage(@NotNull ImageResource imageResource); @NotNull @Override SimpleLayoutPanel getImagePanel();  }
@Test public void shouldUnSelect() { itemWidget.unSelect(); verify(resources, times(2)).runnerCss(); verify(css).runnerShadow(); verify(css).runnerWidgetBorders(); }