### Question:
NavigationViewEventDispatcher { void onRerouteAlong(DirectionsRoute directionsRoute) { if (routeListener != null) { routeListener.onRerouteAlong(directionsRoute); } }    }### Answer:
@Test public void onRouteListenerNotSet_rerouteAlongListenerIsNotCalled() throws Exception { NavigationViewEventDispatcher eventDispatcher = new NavigationViewEventDispatcher(); RouteListener routeListener = mock(RouteListener.class); DirectionsRoute directionsRoute = mock(DirectionsRoute.class); eventDispatcher.onRerouteAlong(directionsRoute); verify(routeListener, times(0)).onRerouteAlong(directionsRoute); }