sendNotification(broker);
NotifyDocument subNotifyDoc = (NotifyDocument) result.poll(2000);
assertNotNull(subNotifyDoc);
// Pause the subscription.
PauseSubscriptionDocument pauseRequest = PauseSubscriptionDocument.Factory.newInstance();
pauseRequest.addNewPauseSubscription();
broker.getSubscriptionManager().pauseSubcription(pauseRequest, subRef);
// The sub should be stopped and we should not be getting notifed now.
sendNotification(broker);
subNotifyDoc = (NotifyDocument) result.poll(2000);