@Test
public void shouldPublishFromAdminMessage() throws Exception {

	Message message = mock(Message.class);
	SessionID sessionId = mock(SessionID.class);
	clientApplication.fromAdmin(message, sessionId);
	await().atMost(FIVE_SECONDS).until(() -> receivedEvents.size() == 1);
	assertThat(receivedEvents.get(0)).isInstanceOf(FromAdmin.class);
	assertThat(((FromAdmin) receivedEvents.get(0)).getMessage()).isEqualTo(message);
	assertThat(((FromAdmin) receivedEvents.get(0)).getSessionId()).isEqualTo(sessionId);
}