EditHTMLPresenter { void okClick() { view.hide(); modalConfigurationContext.setComponentProperty(HTMLLayoutDragComponent.HTML_CODE_PARAMETER, htmlEditor.getContent()); destroyHtmlEditor(); modalConfigurationContext.configurationFinished(); } @Inject  EditHTMLPresenter(final View view,
                             final HtmlEditorPresenter htmlEditor); void init(final ModalConfigurationContext modalConfigurationContext); void show(); void destroyHtmlEditor(); HtmlEditorPresenter.View getHtmlEditorView(); ModalConfigurationContext getModalConfigurationContext(); View getView();  }
@Test public void okClickTest() { presenter.init(modalConfigurationContext); presenter.okClick(); verify(view).hide(); verify(presenter).destroyHtmlEditor(); verify(modalConfigurationContext, never()).configurationCancelled(); verify(modalConfigurationContext).configurationFinished(); }