assertEquals("Second message", TimerTick.class, messages.get(1).getClass());
assertEquals("Third message", TimerTick.class, messages.get(2).getClass());
assertEquals("Fourth message", TimerTick.class, messages.get(3).getClass());
assertEquals("Fifth message", TimerFinished.class, messages.get(4).getClass());
TimerStarted timerStarted = (TimerStarted) messages.get(0);
assertEquals("Initial time", Time.seconds(3), timerStarted.getTime());
assertEquals("Phase when timer started", Phase.POMODORO, timerStarted.getPhase());
TimerTick firstTick = (TimerTick) messages.get(1);
assertEquals("First tick's time", Time.seconds(2), firstTick.getTime());
assertEquals("First tick's phase", Phase.POMODORO, firstTick.getPhase());