Mock side effect?

Hi i understand that we can mock Activity for unit testing. But what about side effect? E.g. we have side effect that returns a random number.

The only workaround we can think of right now is to monkey patch the function that generate the random number inside the side effect, but we want to avoid that if possible.


Unfortunately not yet:

thanks Maxim