@Test
public void checkWizardHandlerSave() {

    helper.createNewGuidedDecisionTable(contextPath,
                                        baseFileName,
                                        tableFormat,
                                        hitPolicy,
                                        view,
                                        onSaveSuccessCallback);
    verify(wizardBean,
           times(1)).setContent(eq(contextPath),
                                eq(baseFileName),
                                eq(tableFormat),
                                eq(hitPolicy),
                                eq(oracle),
                                wizardHandlerCaptor.capture());
    final GuidedDecisionTableWizardHandler wizardHandler = wizardHandlerCaptor.getValue();
    assertNotNull(wizardHandler);
    wizardHandler.save(contextPath,
                       baseFileName,
                       model);
    verify(beanManager,
           times(1)).destroyBean(wizardBean);
    verify(oracleFactory,
           times(1)).destroy(oracle);
    verify(view,
           times(1)).showBusyIndicator(any(String.class));
    verify(dtService,
           times(1)).create(eq(contextPath),
                            fileNameCaptor.capture(),
                            eq(model),
                            eq(""));
    verify(onSaveSuccessCallback,
           times(1)).callback(any(Path.class));
    verify(view,
           times(1)).hideBusyIndicator();
    final String fileName = fileNameCaptor.getValue();
    assertNotNull(fileName);
    assertEquals(baseFileName + "." + dtResourceType.getSuffix(),
                 fileName);
}