[erlang-questions] Erlang gen_fsm transition to a new state

Hello, I have erlang gen_fsm, my first state: begin({Nick}, _From, State) -> {reply, true, next_state, State}. Then i have: next_state(_Event, _From, State) -> io:format("Test

") {reply, ok, begin, State}. But i don't seen Test note in shell How correctly transit to a new state? Thank you.