### Question:
DecisionNavigatorPresenter { @WorkbenchPartTitle public String getTitle() { return translationService.format(DecisionNavigatorPresenter_DecisionNavigator); } @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 testGetTitle() { final String expectedTitle = "Decision Navigator"; when(translationService.format(DecisionNavigatorPresenter_DecisionNavigator)).thenReturn(expectedTitle); final String actualTitle = presenter.getTitle(); assertEquals(expectedTitle, actualTitle); }