ButtonWidgetImpl extends Composite implements ButtonWidget, ClickHandler, MouseOverHandler, MouseOutHandler { @Override public void setEnable() { isEnable = true; image.removeStyleName(resources.runnerCss().opacityButton()); } @Inject  ButtonWidgetImpl(RunnerResources resources,
                            TooltipWidget tooltip,
                            @NotNull @Assisted String prompt,
                            @NotNull @Assisted SVGResource image); @Override void setDisable(); @Override void setEnable(); @Override void setDelegate(@NotNull ActionDelegate delegate); @Override void onClick(ClickEvent event); @Override void onMouseOut(MouseOutEvent mouseOutEvent); @Override void onMouseOver(MouseOverEvent event);  }
@Test public void buttonShouldBeEnabled() throws Exception { button.setEnable(); verify(button.image).removeStyleName(SOME_TEXT); }