### Question:
ServiceAlertsHelper { public void addClosedSituationExchangesToSiri( ServiceDelivery serviceDelivery, Collection<String> deletedIds) { Map<String, PtSituationElementStructure> ptSituationElements = new HashMap<String, PtSituationElementStructure>(); for (String id : deletedIds) { PtSituationElementStructure ptSit = new PtSituationElementStructure(); EntryQualifierStructure value = new EntryQualifierStructure(); value.setValue(id); ptSit.setSituationNumber(value); ptSit.setProgress(WorkflowStatusEnumeration.CLOSED); ptSituationElements.put(id, ptSit); } addPtSituationElementsToServiceDelivery(serviceDelivery, ptSituationElements); }  void addSituationExchangeToSiriForStops(
      ServiceDelivery serviceDelivery,
      List<MonitoredStopVisitStructure> visits,
      NycTransitDataService nycTransitDataService, List<AgencyAndId> stopIds); void addSituationExchangeToServiceDelivery(ServiceDelivery serviceDelivery,
      Collection<ServiceAlertBean> serviceAlerts); void addSituationExchangeToServiceDelivery(ServiceDelivery serviceDelivery,
      List<VehicleActivityStructure> activities,
      NycTransitDataService nycTransitDataService); void addSituationExchangeToServiceDelivery(ServiceDelivery serviceDelivery,
      List<VehicleActivityStructure> activities,
      NycTransitDataService nycTransitDataService, List<AgencyAndId> routeIds); void addSituationExchangeToServiceDelivery(ServiceDelivery serviceDelivery,
      Map<String, ServiceAlertBean> currentServiceAlerts); void addClosedSituationExchangesToSiri(
      ServiceDelivery serviceDelivery, Collection<String> deletedIds); void addGlobalServiceAlertsToServiceDelivery(ServiceDelivery serviceDelivery, RealtimeService realtimeService); PtSituationElementStructure getServiceAlertBeanAsPtSituationElementStructure(
      ServiceAlertBean serviceAlert); Date serviceAlertTimeToDate(long time);  }### Answer:
@Test public void testAddClosedSituationExchangesToSiri() { ServiceDelivery serviceDelivery = new ServiceDelivery(); List<String> deletedIds = new ArrayList<String>(); deletedIds.add("MTA NYCT_100"); deletedIds.add("MTA NYCT_101"); addClosedSituationExchangesToSiri(serviceDelivery, deletedIds); List<SituationExchangeDeliveryStructure> list = serviceDelivery.getSituationExchangeDelivery(); assertEquals(1, list.size()); SituationExchangeDeliveryStructure situationExchangeDeliveryStructure = list.get(0); List<PtSituationElementStructure> ptSituationElements = situationExchangeDeliveryStructure.getSituations().getPtSituationElement(); assertEquals(2, ptSituationElements.size()); for (PtSituationElementStructure ptSit : ptSituationElements) { assertTrue(deletedIds.contains(ptSit.getSituationNumber().getValue())); assertEquals(WorkflowStatusEnumeration.CLOSED, ptSit.getProgress()); } }