sendNotification(broker);
subNotifyDoc = (NotifyDocument) result.poll(2000);
assertNull(subNotifyDoc);
// Resume the subscription.
ResumeSubscriptionDocument resumeRequest = ResumeSubscriptionDocument.Factory.newInstance();
resumeRequest.addNewResumeSubscription();
broker.getSubscriptionManager().resumeSubscription(resumeRequest, subRef);
// We should now get the message that was previously sent since the sub is now running.
subNotifyDoc = (NotifyDocument) result.poll(2000);
assertNotNull(subNotifyDoc);