### Question:
NavigationNotificationProvider { void updateNavigationNotification(RouteProgress routeProgress) { if (shouldUpdate) { navigationNotification.updateNotification(routeProgress); } } NavigationNotificationProvider(Context context, MapboxNavigation mapboxNavigation);   }### Answer:
@Test public void updateNavigationNotification() { NavigationNotification notification = mock(NavigationNotification.class); MapboxNavigation mapboxNavigation = buildNavigationWithNotificationOptions(notification); Context context = mock(Context.class); NavigationNotificationProvider provider = new NavigationNotificationProvider(context, mapboxNavigation); RouteProgress routeProgress = mock(RouteProgress.class); provider.updateNavigationNotification(routeProgress); verify(notification).updateNotification(eq(routeProgress)); }