WizardViewImpl extends BaseModal implements
        WizardView { @Override protected void onUnload() { parentOnUnload(); getPresenter().close(); } WizardViewImpl(); @Override void init(final AbstractWizard presenter); @Override void setPageTitles(final List<WizardPage> pages); @Override void selectPage(final int pageNumber); @Override void setBodyWidget(final Widget w); @Override void setPreferredHeight(final int height); @Override void setPreferredWidth(final int width); @Override void setPageCompletionState(final int pageIndex,
                                       final boolean isComplete); @Override void setCompletionStatus(final boolean isComplete); @Override void show(); @Override void hide();  }
@Test public void testOnUnload() { doReturn(presenter).when(view).getPresenter(); view.onUnload(); verify(presenter).close(); verify(view).parentOnUnload(); }