### Question:
NavigationViewEventDispatcher { void initializeListeners(NavigationViewOptions navigationViewOptions, MapboxNavigation navigation) { assignFeedbackListener(navigationViewOptions.feedbackListener()); assignNavigationListener(navigationViewOptions.navigationListener()); assignRouteListener(navigationViewOptions.routeListener()); assignBottomSheetCallback(navigationViewOptions.bottomSheetCallback()); assignProgressChangeListener(navigationViewOptions, navigation); assignMilestoneEventListener(navigationViewOptions, navigation); assignInstructionListListener(navigationViewOptions.instructionListListener()); assignSpeechAnnouncementListener(navigationViewOptions.speechAnnouncementListener()); assignBannerInstructionsListener(navigationViewOptions.bannerInstructionsListener()); }    }### Answer:
@Test public void onProgressChangeListenerAddedInOptions_isAddedToNavigation() { NavigationViewEventDispatcher eventDispatcher = new NavigationViewEventDispatcher(); NavigationViewOptions options = mock(NavigationViewOptions.class); ProgressChangeListener progressChangeListener = setupProgressChangeListener(options); MapboxNavigation navigation = mock(MapboxNavigation.class); eventDispatcher.initializeListeners(options, navigation); verify(navigation, times(1)).addProgressChangeListener(progressChangeListener); }
@Test public void onMilestoneEventListenerAddedInOptions_isAddedToNavigation() { NavigationViewEventDispatcher eventDispatcher = new NavigationViewEventDispatcher(); NavigationViewOptions options = mock(NavigationViewOptions.class); MilestoneEventListener milestoneEventListener = setupMilestoneEventListener(options); MapboxNavigation navigation = mock(MapboxNavigation.class); eventDispatcher.initializeListeners(options, navigation); verify(navigation, times(1)).addMilestoneEventListener(milestoneEventListener); }