session.verifySent("<presence from='user@local' to='friend@domain' type='unsubscribed' />");
}
@Test
public void shouldFireSubscriptionRequests() {
final SubscriptionRequestReceivedTestHandler handler = new SubscriptionRequestReceivedTestHandler();
manager.addSubscriptionRequestReceivedHandler(handler);
session.receives("<presence to='user@local' from='friend@domain' type='subscribe' />");
assertEquals(1, handler.getCalledTimes());
}