AbstractScenarioPopupView implements AbstractScenarioPopup { @Override public void show(final String mainTitleText, final String okButtonText, final Command okCommand) { this.okCommand = okCommand; conditionalShow(mainTitle, mainTitleText); conditionalShow(okButton, okCommand, okButtonText); modal.show(); }  @PostConstruct void init(); @Override void show(final String mainTitleText,
                     final String okButtonText,
                     final Command okCommand); @Override HTMLElement getElement(); @Override void hide(); @EventHandler("ok-button") void onOkClick(final @ForEvent("click") MouseEvent event); @EventHandler("cancel-button") void onCancelClick(final @ForEvent("click") MouseEvent event);  }
@Test public void show() { popupView.show(MAIN_TITLE_TEXT, OK_BUTTON_TEXT, okCommandMock); verifyShow(MAIN_TITLE_TEXT); assertEquals(okCommandMock, popupView.okCommand); }