ButtonWidgetImpl extends Composite implements ButtonWidget, ClickHandler, MouseOverHandler, MouseOutHandler { @Override public void onMouseOver(MouseOverEvent event) { tooltip.setPopupPosition(getAbsoluteLeft(), getAbsoluteTop() + TOP_TOOLTIP_SHIFT); tooltip.show(); } @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 onMouseOverShouldBeDone() throws Exception { button.onMouseOver(mouseOverEvent); verify(tooltipWidget).setPopupPosition(anyInt(), anyInt()); verify(tooltipWidget).show(); }