@Before
public void beforeTests() {
final EventBus eventBus = new SimpleEventBus();
session = new XmppSessionTester();
chatManager = new PairChatManagerImpl(eventBus, session, new PairChatSelectionStrategy());
session.setLoggedIn(MYSELF);
final ChatStateManager stateManager = new ChatStateManager(eventBus, chatManager);
chat = chatManager.open(OTHER);
chatStateHook = stateManager.getChatState(chat);
stateHandler = new ChatStateChangedTestHandler();