fun <S : MavericksState> getMockedState(view: MockableMavericksView, viewModelProperty: KProperty<*>, existingViewModel: Boolean, stateClass: Class<S>, forceMockExistingViewModel: Boolean): S?
Get the mocked state for the viewmodel on the given view. Returns null if no mocked state has been set - this is valid if a view under mock contains nested views that are not under mock.
The mock state is not cleared after being retrieved because if the view has multiple viewmodels they will each need to access this separately.
If null is returned it means that the view should be initialized from its arguments. This will only happen if this is not an "existing" view model.
forceMockExistingViewModel - If true, and if existingViewModel is true, then we expect that no mock state has been set for this viewmodel
and we should instead manually retrieve the default mock state from the View and force that as the mock state to use.