### Question:
NavigationMapboxMap { public void updateLocationLayerRenderMode(@RenderMode.Mode int renderMode) { locationLayer.setRenderMode(renderMode); } NavigationMapboxMap(@NonNull MapView mapView, @NonNull MapboxMap mapboxMap);   NavigationMapboxMap(MapLayerInteractor layerInteractor);   NavigationMapboxMap(LocationLayerPlugin locationLayer);   NavigationMapboxMap(NavigationMapRoute mapRoute); void addMarker(Context context, Point position); void clearMarkers(); void updateLocation(Location location); void updateLocationLayerRenderMode(@RenderMode.Mode int renderMode); void addProgressChangeListener(MapboxNavigation navigation); void saveStateWith(String key, Bundle outState); void restoreFrom(NavigationMapboxMapInstanceState instanceState); void drawRoute(@NonNull DirectionsRoute route); void drawRoutes(@NonNull List<DirectionsRoute> routes); void setOnRouteSelectionChangeListener(@NonNull OnRouteSelectionChangeListener listener); void showAlternativeRoutes(boolean alternativesVisible); void removeRoute(); NavigationCamera retrieveCamera(); void updateCameraTrackingEnabled(boolean isEnabled); void startCamera(@NonNull DirectionsRoute directionsRoute); void resumeCamera(@NonNull Location location); void resetCameraPosition(); void showRouteOverview(int[] padding); void updateWaynameView(String wayname); void updateWaynameVisibility(boolean isVisible); boolean isWaynameVisible(); void updateWaynameQueryMap(boolean isEnabled); void onStart(); void onStop(); void updateLocationLayerVisibilityTo(boolean isVisible); MapboxMap retrieveMap(); void updateIncidentsVisibility(boolean isVisible); boolean isIncidentsVisible(); void updateTrafficVisibility(boolean isVisible); boolean isTrafficVisible(); void addOnMoveListener(@NonNull MapboxMap.OnMoveListener onMoveListener); void removeOnMoveListener(MapboxMap.OnMoveListener onMoveListener); void takeScreenshot(NavigationSnapshotReadyCallback navigationSnapshotReadyCallback);  }### Answer:
@Test public void updateRenderMode_locationLayerIsUpdatedWithRenderMode() { LocationLayerPlugin locationLayer = mock(LocationLayerPlugin.class); NavigationMapboxMap theNavigationMap = new NavigationMapboxMap(locationLayer); int renderMode = RenderMode.GPS; theNavigationMap.updateLocationLayerRenderMode(renderMode); verify(locationLayer).setRenderMode(eq(renderMode)); }