assertTrue(handler.isCalledOnce());
}
@Test
public void shouldEventPresences() {
final PresenceReceivedTestHandler handler = new PresenceReceivedTestHandler();
session.addPresenceReceivedHandler(handler);
connection.receives(XMLBuilder.create("presence").getXML());
assertTrue(handler.isCalledOnce());
}