### Question:
OperatorAssignmentServiceImpl implements OperatorAssignmentService { @Override public Collection<OperatorAssignmentItem> getOperatorsForServiceDate( ServiceDate serviceDate) throws Exception { if (serviceDate == null) { return null; } HashMap<String, OperatorAssignmentItem> list = _serviceDateToOperatorListMap.get(serviceDate); if (list != null) return list.values(); synchronized(this._serviceDateToOperatorListMap) { list = _serviceDateToOperatorListMap.get(serviceDate); if (list != null) return list.values(); list = getOperatorMapForServiceDate(serviceDate); if (list == null) { throw new Exception("Operator service is temporarily not available."); } _serviceDateToOperatorListMap.put(serviceDate, list); if (_serviceDateToOperatorListMap.size() == 0) { _log.warn("No operator assignment values are present!"); } else { _log.debug("Have " + _serviceDateToOperatorListMap.size() + " operator assignments."); } } return list.values(); }  @Autowired void setConfigurationService(ConfigurationService configurationService); @Autowired void setTransitDataManagerApiLibrary(TransitDataManagerApiLibrary apiLibrary); void refreshData(); @PreDestroy void destroy(); @Override Collection<OperatorAssignmentItem> getOperatorsForServiceDate(
      ServiceDate serviceDate); @Override OperatorAssignmentItem getOperatorAssignmentItemForServiceDate(
      ServiceDate serviceDate, AgencyAndId operatorId);  }### Answer:
@Test public void getAll() throws Exception { ServiceDate date = ServiceDate.parseString("20111014"); Collection<OperatorAssignmentItem> items = service.getOperatorsForServiceDate(date); OperatorAssignmentItem item = items.iterator().next(); assertEquals(item.getPassId(), "123456"); assertEquals(item.getAgencyId(), "MTA NYCT"); assertEquals(item.getRunRoute(), "63"); assertEquals(item.getRunNumber(), "200"); assertEquals(item.getRunId(), "63-200"); assertEquals(item.getDepot(), "JG"); }