ScenarioSimulationEventHandler implements AppendColumnEventHandler,
                                                       AppendRowEventHandler,
                                                       DeleteColumnEventHandler,
                                                       DeleteRowEventHandler,
                                                       DisableTestToolsEventHandler,
                                                       DuplicateInstanceEventHandler,
                                                       DuplicateRowEventHandler,
                                                       EnableTestToolsEventHandler,
                                                       ImportEventHandler,
                                                       InsertColumnEventHandler,
                                                       InsertRowEventHandler,
                                                       PrependColumnEventHandler,
                                                       PrependRowEventHandler,
                                                       RedoEventHandler,
                                                       ReloadTestToolsEventHandler,
                                                       RunSingleScenarioEventHandler,
                                                       ScenarioGridReloadEventHandler,
                                                       ScenarioNotificationEventHandler,
                                                       SetGridCellValueEventHandler,
                                                       SetHeaderCellValueEventHandler,
                                                       SetInstanceHeaderEventHandler,
                                                       SetPropertyHeaderEventHandler,
                                                       UndoEventHandler,
                                                       UnsupportedDMNEventHandler,
                                                       ValidateSimulationEventHandler { @PreDestroy public void unregisterHandlers() { handlerRegistrationList.forEach(HandlerRegistration::removeHandler); }  void setEventBus(EventBus eventBus); void setDeletePopupPresenter(DeletePopupPresenter deletePopupPresenter); void setPreserveDeletePopupPresenter(PreserveDeletePopupPresenter preserveDeletePopupPresenter); void setConfirmPopupPresenter(ConfirmPopupPresenter confirmPopupPresenter); void setFileUploadPopupPresenter(FileUploadPopupPresenter fileUploadPopupPresenter); void setNotificationEvent(Event<NotificationEvent> notificationEvent); void setScenarioSimulationPresenter(ScenarioSimulationEditorPresenter scenarioSimulationEditorPresenter); void setScenarioCommandRegistryManager(ScenarioCommandRegistryManager scenarioCommandRegistryManager); void setScenarioCommandManager(ScenarioCommandManager scenarioCommandManager); void setContext(ScenarioSimulationContext context); @PreDestroy void unregisterHandlers(); @Override void onEvent(AppendColumnEvent event); @Override void onEvent(AppendRowEvent event); @Override void onEvent(DeleteColumnEvent event); @Override void onEvent(DeleteRowEvent event); @Override void onEvent(DisableTestToolsEvent event); @Override void onEvent(DuplicateInstanceEvent event); @Override void onEvent(DuplicateRowEvent event); @Override void onEvent(EnableTestToolsEvent event); @Override void onEvent(ImportEvent event); @Override void onEvent(InsertColumnEvent event); @Override void onEvent(InsertRowEvent event); @Override void onEvent(PrependColumnEvent event); @Override void onEvent(PrependRowEvent event); @Override void onEvent(RedoEvent event); @Override void onEvent(ReloadTestToolsEvent event); @Override void onEvent(RunSingleScenarioEvent event); @Override void onEvent(ScenarioGridReloadEvent event); @Override void onEvent(ScenarioNotificationEvent event); @Override void onEvent(SetGridCellValueEvent event); @Override void onEvent(SetHeaderCellValueEvent event); @Override void onEvent(SetInstanceHeaderEvent event); @Override void onEvent(SetPropertyHeaderEvent event); @Override void onEvent(UndoEvent event); @Override void onEvent(UnsupportedDMNEvent event); @Override void onEvent(ValidateSimulationEvent event);  }
@Test public void unregisterHandlers() { scenarioSimulationEventHandler.unregisterHandlers(); verify(handlerRegistrationListMock, times(1)).forEach(anyObject()); }