I´m using the navGraphViewModels ViewModel scoping on Android, and when I´m implementing the Fragment tests I can´t even start the test. I´m using mockito to mock the NavigationController and using the documentation suggested aproach with the fragmentScenario. The problem comes when the ViewModel is tryed to be created that throws an Exception because NavController#getBackStackEntry is not mocked and I can´t mock it because NavController is a final class.
How can I test that uses ViewModels which are scoped to a navigation graph?