### Question:
SelectDocumentPopup implements SelectDocumentPopupPresenter { @Override public void onCancel() { view.hide(); dispose(); } @Inject  SelectDocumentPopup(final SelectDocumentPopupView view,
                               final ManagedInstance<SelectableDocumentView> selectableDocumentProvider); @Override @PreDestroy void dispose(); @Override void setEditorPresenter(final KieMultipleDocumentEditorPresenter presenter); @Override void setDocuments(final List<Path> paths); @Override void show(); @Override void onOK(); @Override void onCancel();  }### Answer:
@Test public void testOnCancel() { presenter.onCancel(); verify( view, times( 1 ) ).hide(); verify( presenter, times( 1 ) ).dispose(); }