}
@Test
public void shouldEventOwnPresence() {
session.setLoggedIn(uri("myself@domain"));
final OwnPresenceChangedTestHandler handler = new OwnPresenceChangedTestHandler();
manager.addOwnPresenceChangedHandler(handler);
final Presence newOwn = new Presence();
newOwn.setStatus("status");
newOwn.setShow(Show.away);
manager.changeOwnPresence(newOwn);
assertTrue(handler.isCalledOnce());
assertEquals("status", handler.getCurrentPresence().getStatus());
assertEquals(Show.away, handler.getCurrentPresence().getShow());
}