### Question:
NavigationViewEventDispatcher { void onNavigationRunning() { if (navigationListener != null) { navigationListener.onNavigationRunning(); } }    }### Answer:
@Test public void onNavigationListenerNotSet_runningListenerIsNotCalled() throws Exception { NavigationViewEventDispatcher eventDispatcher = new NavigationViewEventDispatcher(); NavigationListener navigationListener = mock(NavigationListener.class); eventDispatcher.onNavigationRunning(); verify(navigationListener, times(0)).onNavigationRunning(); }
@Test public void onNavigationListenerNotSet_runningListenerIsNotCalled() { NavigationViewEventDispatcher eventDispatcher = new NavigationViewEventDispatcher(); NavigationListener navigationListener = mock(NavigationListener.class); eventDispatcher.onNavigationRunning(); verify(navigationListener, times(0)).onNavigationRunning(); }