private MessageSentTestHandler sentHandler;
@Before
public void beforeTests() {
eventBus = new SimpleEventBus();
session = new XmppSessionTester();
properties = new ChatProperties(CHAT, ME, ChatStatus.ready);
chat = new PairChat(eventBus, session, properties);
beforeSendHandler = new BeforeMessageSentTestHandler();
chat.addBeforeMessageSentHandler(beforeSendHandler);
sentHandler = new MessageSentTestHandler();