UserPresence presence = new UserPresence(PresenceMode.AWAY);
assert presence.isOnline();
myTransport.setOwnPresence(presence);
// make sure that away status will be updated
myTransport.findUsers(new NullProgressIndicator());
assert PresenceMode.AWAY == self.getPresence().getPresenceMode();
// Now, test itself. We go online and want this status to be updated almost immediately.
myEvents.clear();
addEventListener();