ErrorReportPopoverPresenter implements ErrorReportPopover.Presenter { @Override public void setup(final String errorTitleText, final String errorContentText, final String keepText, final String applyText, final Command applyCommand, final int mx, final int my, final PopoverView.Position position) { errorReportPopupView.setup(errorTitleText, errorContentText, keepText, applyText, applyCommand, mx, my, position); }  @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 PopoverView.Position position); @Override void setup(final String errorTitleText,
                      final String errorContentText,
                      final String keepText,
                      final int mx,
                      final int my,
                      final PopoverView.Position position); @Override void show(); @Override void hide(); @Override boolean isShown(); @Override int getActualHeight();  }
@Test public void setupWithCommand() { errorReportPopupPresenter.setup(ERROR_TITLE_TEXT, ERROR_CONTENT_TEXT, KEEP_TEXT, APPLY_TEXT, applyCommandMock, MX, MY, PopoverView.Position.RIGHT); verify(errorReportPopoverViewMock, times(1)).setup(eq(ERROR_TITLE_TEXT), eq(ERROR_CONTENT_TEXT), eq(KEEP_TEXT), eq(APPLY_TEXT), eq(applyCommandMock), eq(MX), eq(MY), eq(PopoverView.Position.RIGHT)); }
@Test public void setupWithoutCommand() { errorReportPopupPresenter.setup(ERROR_TITLE_TEXT, ERROR_CONTENT_TEXT, KEEP_TEXT, MX, MY, PopoverView.Position.RIGHT); verify(errorReportPopoverViewMock, times(1)).setup(eq(ERROR_TITLE_TEXT), eq(ERROR_CONTENT_TEXT), eq(KEEP_TEXT), eq(MX), eq(MY), eq(PopoverView.Position.RIGHT)); }