}
@Test
public void shouldOpenDifferentsChatsForDifferentDomains() {
final PairChat chatCom = manager.open(uri("COM@domain.com"));
final MessageReceivedTestHandler handlerCom = new MessageReceivedTestHandler();
chatCom.addMessageReceivedHandler(handlerCom);
assertTrue("com listener empty", handlerCom.isNotCalled());
final PairChat chatOrg = manager.open(uri("ORG@domain.org"));
final MessageReceivedTestHandler handlerOrg = new MessageReceivedTestHandler();
chatOrg.addMessageReceivedHandler(handlerOrg);
assertTrue("org listener empty", handlerCom.isNotCalled());
session.receives(new Message("message com 2", MYSELF, uri("COM@domain.com")));
assertTrue("com has one message", handlerCom.isCalledOnce());
assertTrue("org has no message", handlerOrg.isNotCalled());
}