### Question:
NycSiriServiceGateway extends NycSiriService { @Override void postServiceDeliveryActions(SituationExchangeResults results, Collection<String> deletedIds) throws Exception { for (ServiceAlertSubscription subscription : getActiveServiceAlertSubscriptions()) { new Thread(new SubscriptionSender(subscription, deletedIds)).start(); } }  List<ServiceAlertSubscription> getActiveServiceAlertSubscriptions(); SiriServicePersister getPersister(); void setPersister(SiriServicePersister _siriServicePersister); @Override void deleteAllServiceAlerts();  }### Answer:
@Test public void testPostServiceDeliveryActions() throws Exception { MockSiriServicePersister mockPersister = new MockSiriServicePersister(); setPersister(mockPersister); mockPersister.put("one", ServiceAlertsTestSupport.createServiceAlertBean("MTA NYCT_100")); SituationExchangeResults result = mock(SituationExchangeResults.class); ServiceDelivery delivery = mock(ServiceDelivery.class); addSubscription(); addSubscription(); handleServiceDeliveries(result, delivery); }