### Question:
KieMultipleDocumentEditor implements KieMultipleDocumentEditorPresenter<D> { protected RemoteCallback<Path> getSaveSuccessCallback(final D document, final int currentHashCode) { return (path) -> { editorView.hideBusyIndicator(); versionRecordManager.reloadVersions(path); notificationEvent.fire(new NotificationEvent(CommonConstants.INSTANCE.ItemSavedSuccessfully())); document.setOriginalHashCode(currentHashCode); overviewWidget.resetDirty(); }; } KieMultipleDocumentEditor();  KieMultipleDocumentEditor(final KieEditorView editorView); @Override void registerDocument(final D document); @Override void deregisterDocument(final D document); @Override void activateDocument(final D document,
                                 final Overview overview,
                                 final AsyncPackageDataModelOracle dmo,
                                 final Imports imports,
                                 final boolean isReadOnly); @Override D getActiveDocument(); @Override IsWidget getWidget(); @Override IsWidget getTitleWidget(final D document); @Override void getMenus(final Consumer<Menus> menusConsumer); @Override void onClose(); @Override void onSourceTabSelected(); @Override void updateSource(final String source); @Override void onEditTabSelected(); @Override void onEditTabUnselected(); @Override void onOverviewSelected(); @Override boolean mayClose(final Integer originalHashCode,
                            final Integer currentHashCode); @Override Promise<Void> makeMenuBar();  }### Answer:
@Test public void testSaveSuccessCallback() { final TestDocument document = createTestDocument(); final int currentHashCode = document.hashCode(); final Path documentPath = document.getCurrentPath(); final RemoteCallback<Path> callback = editor.getSaveSuccessCallback(document, currentHashCode); callback.callback(documentPath); verify(editorView).hideBusyIndicator(); verify(versionRecordManager).reloadVersions(eq(documentPath)); verify(notificationEvent).fire(any(NotificationEvent.class)); verify(document).setOriginalHashCode(eq(currentHashCode)); verify(overviewWidget).resetDirty(); }