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