@Test
public void shouldPublishLogonMessage() {

	SessionID sessionId = mock(SessionID.class);
	clientApplication.onLogon(sessionId);
	await().atMost(FIVE_SECONDS).until(() -> receivedEvents.size() > 0);
	assertThat(receivedEvents.get(0)).isInstanceOf(Logon.class);
	assertThat(((Logon) receivedEvents.get(0)).getSessionId()).isEqualTo(sessionId);
}