ServiceRegistry { public BusinessService getServiceByName(String name) { return servicesByName.get(name); }  BusinessService getServiceByName(String name); int count(); List<BusinessService> getServices();  }
@Test public void testCollector() { assertThat(serviceRegistry.getServiceByName("serviceA"), notNullValue()); assertThat(serviceRegistry.getServiceByName("serviceB"), notNullValue()); }