ErrorReportPopoverView extends AbstractPopoverView implements ErrorReportPopover { @EventHandler("keepButton") public void onKeepButtonClicked(ClickEvent clickEvent) { hide(); } ErrorReportPopoverView(); @Inject  ErrorReportPopoverView(final Div errorContent,
                                  final Div popoverElement,
                                  final Div popoverContainerElement,
                                  final Div popoverContentElement,
                                  final JQueryProducer.JQuery<Popover> jQueryPopover); @Override void setup(final String errorTitleText,
                      final String errorContentText,
                      final String keepText,
                      final String applyText,
                      final Command applyCommand,
                      final int mx,
                      final int my,
                      final Position position); @Override void setup(final String errorTitleText,
                      final String errorContentText,
                      final String keepText,
                      final int mx,
                      final int my,
                      final Position position); @EventHandler("keepButton") void onKeepButtonClicked(ClickEvent clickEvent); @EventHandler("applyButton") void onApplyButtonClicked(ClickEvent clickEvent);  }
@Test public void onKeepButtonClicked() { errorReportPopupView.onKeepButtonClicked(mock(ClickEvent.class)); verify(errorReportPopupView, times(1)).hide(); }