NavigatingActivityDelegate extends ActivityDelegate<S, U> { @Override @CallSuper public void onCreate() { super.onCreate(); if (viewModel != null) { viewModel.setNavigator(navigatingCallback.getNavigator()); } } NavigatingActivityDelegate(@NonNull ActivityDelegateCallback<S, U> callback,
                                      @NonNull NavigatingDelegateCallback<T> navigatingCallback,
                                      @NonNull Activity delegatedActivity); @Override @CallSuper void onCreate(); @Override void onDestroy();  }
@Test public void testSetNavigatorOnCreate() { when(callback.getMvvmView()).thenReturn(view); when(callback.createViewModel()).thenReturn(viewModel); when(view.getBindingConfig()).thenReturn(new BindingConfig(0, 0)); delegate.onCreate(); verify(viewModel).setNavigator(navigator); }