### Question:
Choreography { public Map<String, DeployableService> getMapOfDeployableServicesBySpecNames() { Map<String, DeployableService> map = new HashMap<String, DeployableService>(); if (deployableServices != null) { for (DeployableService svc : deployableServices) { map.put(svc.getSpec().getName(), svc); } } return map; }  DeployableService getDeployableServiceBySpecName(String specName); void addService(DeployableService deployableService); void addService(LegacyService legacyService); List<Service> getServices(); Map<String, DeployableService> getMapOfDeployableServicesBySpecNames(); Map<String, Service> getMapOfServicesBySpecNames(); void removeServiceInstance(ServiceInstance instance); String getId(); void setId(String id); ChoreographySpec getChoreographySpec(); void setChoreographySpec(ChoreographySpec spec); List<DeployableService> getDeployableServices(); void setDeployableServices(List<DeployableService> deployableServices); List<LegacyService> getLegacyServices(); void setLegacyServices(List<LegacyService> legacyServices); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void shouldRetrieveMap() { Map<String, DeployableService> map = chor.getMapOfDeployableServicesBySpecNames(); assertTrue(map.containsKey(AIRLINE)); assertTrue(map.containsKey(TRAVEL_AGENCY)); assertEquals(AIRLINE, map.get(AIRLINE).getSpec().getName()); assertEquals(TRAVEL_AGENCY, map.get(TRAVEL_AGENCY).getSpec().getName()); assertEquals(airlineService, map.get(AIRLINE)); assertEquals(travelService, map.get(TRAVEL_AGENCY)); }