fun <S : Any, E : Any, O : Any> Reactor<S, E, O>.assertTransition(fromState: S, event: E, toState: S): Unit
Assert that when the given Reactor is in fromState, it will enter toState when it receives event.