public abstract C getChat();
@Test
public void shouldInterceptIncomingMessages() {
final C chat = getChat();
final BeforeMessageReceivedTestHandler interceptor = new BeforeMessageReceivedTestHandler();
chat.addBeforeMessageReceivedHandler(interceptor);
final Message message = new Message("body", USER_URI, chat.getURI());
session.receives(message);
assertEquals(message, interceptor.getLastMessage());
}