### Question:
DecisionNavigatorPresenter { public void onRefreshDecisionComponents(final @Observes RefreshDecisionComponents events) { refreshComponentsView(); } @Inject  DecisionNavigatorPresenter(final View view,
                                      final DecisionNavigatorTreePresenter treePresenter,
                                      final DecisionComponents decisionComponents,
                                      final DecisionNavigatorObserver decisionNavigatorObserver,
                                      final TranslationService translationService,
                                      final EditorContextProvider context,
                                      final DecisionNavigatorItemsProvider navigatorItemsProvider,
                                      final DMNDiagramsSession dmnDiagramsSession); @WorkbenchPartView View getView(); @WorkbenchPartTitle String getTitle(); @DefaultPosition Position getDefaultPosition(); void onRefreshDecisionComponents(final @Observes RefreshDecisionComponents events); void onElementAdded(final @Observes CanvasElementAddedEvent event); DecisionNavigatorTreePresenter getTreePresenter(); void removeAllElements(); void refresh(); void refreshTreeView(); void enableRefreshHandlers(); void disableRefreshHandlers(); void clearSelections(); static final String IDENTIFIER; }### Answer:
@Test public void testOnRefreshDecisionComponents() { presenter.disableRefreshHandlers(); presenter.onRefreshDecisionComponents(mock(RefreshDecisionComponents.class)); presenter.onRefreshDecisionComponents(mock(RefreshDecisionComponents.class)); presenter.enableRefreshHandlers(); presenter.onRefreshDecisionComponents(mock(RefreshDecisionComponents.class)); presenter.onRefreshDecisionComponents(mock(RefreshDecisionComponents.class)); verify(decisionComponents, times(2)).refresh(); }