SubscriptionDelegate { public List<Subscription> getSubscriptions(Identity identity) { return subscriptionDao.getSubscriptionsForIdentity(identity); }  void deleteSubscription(NotificationSubscriptionContext subscriptionContext); void invalidateSubscriptionForSubscriptionContext(NotificationSubscriptionContext subscriptionContext); void invalidateSubscription(Publisher publisher, Subscriber subscriber); void invalidateSubscription(Subscription subscription); Subscription getSubscription(NotificationSubscriptionContext subscriptionContext); Subscription createAndSaveSubscription(NotificationSubscriptionContext subscriptionContext); List<Subscription> getSubscriptions(Identity identity);  }
@Test public void getSubscriptions() { subscriptionDelegateTestObject.getSubscriptions(subscriberIdentity); verify(subscriptionDelegateTestObject.subscriptionDao).getSubscriptionsForIdentity(subscriberIdentity); }