avatarManager = new AvatarManager(new SimpleEventBus(), session);
}
@Test
public void managerShouldListenPresenceWithPhoto() {
final HashPresenceReceivedTestHandler handler = new HashPresenceReceivedTestHandler();
avatarManager.addHashPresenceReceviedHandler(handler);
final Presence presence = new Presence();
presence.setFrom(uri("juliet@capulet.com/balcony"));
presence.getXML().addChild("x", "vcard-temp:x:update").setChildText("photo", "sha1-hash-of-image");
session.receives(presence);
assertTrue(handler.isCalledOnce());
assertEquals(presence, handler.getLastPresence());
}