SubscriptionNotifier notifier = new SubscriptionNotifier();
notifier.cancel();
Collection<Subscription> subscriptions = notifier.getAllAsyncSubscriptions();
Assert.assertEquals(1, subscriptions.size());
Subscription subscription = subscriptions.iterator().next();
Assert.assertNotNull(subscription);
GetSubscriptionResults getSubscriptionResults = notifier.buildGetSubscriptionResults(subscription, new Date(new Date().getTime() + 60000l));
if (getSubscriptionResults!=null)
{
getSubscriptionResults.setSubscriptionKey(subscription.getSubscriptionKey());
UddiEntityPublisher publisher = new UddiEntityPublisher();
publisher.setAuthorizedName(subscription.getAuthorizedName());
SubscriptionResultsList resultList = notifier.getSubscriptionImpl().getSubscriptionResults(getSubscriptionResults, publisher);
logger.info("Expecting the resultList to be null: " + resultList.getServiceList());
Assert.assertNull(resultList.getServiceList());
tckBusinessService.updateJoePublisherService(authInfoJoe, "updated description");
resultList = notifier.getSubscriptionImpl().getSubscriptionResults(getSubscriptionResults, publisher);