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