@Test
public void testNotCacheViewModelWhenInBackStack() {

    activityDelegate.viewModel = viewModel;
    when(activity.isChangingConfigurations()).thenReturn(false);
    assertNull(activityDelegate.onRetainCustomNonConfigurationInstance());
}