assertTrue(handler.isCalledOnce());
}
@Test
public void shouldReuseChatWhenAnsweringWithDifferentResources() {
final PairChatChangedTestHandler handler = addChatCreatedHandler();
final PairChat chat = manager.open(uri("someone@domain"));
assertTrue(handler.isCalledOnce());
assertEquals(chat, handler.getLastChat());
session.receives(new Message("answer", MYSELF, uri("someone@domain/resource")));
assertTrue(handler.isCalledOnce());
}