SiriClientSubscriptionManager implements StatusProviderService { public boolean isSubscriptionActiveForModuleDelivery( AbstractServiceDeliveryStructure moduleDelivery) { SubscriptionId id = ClientSupport.getSubscriptionIdForModuleDelivery(moduleDelivery); return isSubscriptionActive(id); }  @Inject void setSchedulingService(SchedulingService schedulingService); @Inject void setHeartbeatManager(HeartbeatManager heartbeatManager); void registerPendingSubscription(SiriClientRequest request,
      SubscriptionRequest subscriptionRequest); void clearPendingSubscription(SiriClientRequest request,
      SubscriptionRequest subscriptionRequest); void handleSubscriptionResponse(SubscriptionResponseStructure response); boolean isSubscriptionActive(SubscriptionId subscriptionId); boolean isSubscriptionActiveForModuleDelivery(
      AbstractServiceDeliveryStructure moduleDelivery); void recordServiceDeliveryStatistics(ServiceDelivery serviceDelivery); SiriChannelInfo getChannelInfoForServiceDelivery(
      ServiceDelivery serviceDelivery); void handleTerminateSubscriptionResponse(
      TerminateSubscriptionResponseStructure response); void terminateAllSubscriptions(
      boolean waitForTerminateSubscriptionResponseOnExit); void handleCheckStatusNotification(
      CheckStatusResponseStructure response); void handleHeartbeatNotification(
      HeartbeatNotificationStructure heartbeat); @Override void getStatus(Map<String, String> status);  }
@Test public void testIsSubscriptionActiveForModuleDelivery() { SubscriptionResponseStructure response = new SubscriptionResponseStructure(); StatusResponseStructure status = new StatusResponseStructure(); SubscriptionId subscriptionId = new SubscriptionId("subscriberA", "subscriptionB"); ESiriModuleType moduleType = ESiriModuleType.VEHICLE_MONITORING; SiriClientRequest originalSubscriptionRequest = new SiriClientRequest(); originalSubscriptionRequest.setTargetUrl("http: _manager.upgradePendingSubscription(response, status, subscriptionId, moduleType, originalSubscriptionRequest); AbstractServiceDeliveryStructure moduleDelivery = new AbstractServiceDeliveryStructure(); moduleDelivery.setSubscriberRef(SiriTypeFactory.particpantRef("subscriberA")); moduleDelivery.setSubscriptionRef(SiriTypeFactory.subscriptionId("subscriptionB")); _manager.isSubscriptionActiveForModuleDelivery(moduleDelivery); }