### Question:
NavigationLocationEngineListener implements LocationEngineListener { @Override @SuppressWarnings("MissingPermission") public void onConnected() { locationEngine.requestLocationUpdates(); } NavigationLocationEngineListener(RouteProcessorBackgroundThread thread, MapboxNavigation mapboxNavigation,
                                   LocationEngine locationEngine, LocationValidator validator); @Override @SuppressWarnings("MissingPermission") void onConnected(); @Override void onLocationChanged(Location location);  }### Answer:
@Test public void onConnected_engineRequestsUpdates() { LocationEngine locationEngine = mock(LocationEngine.class); NavigationLocationEngineListener listener = buildListener(locationEngine); listener.onConnected(); verify(locationEngine).requestLocationUpdates(); }