SimpleFederatedService serviceA = Mockito.mock(SimpleFederatedService.class);
Map<String, List<CoordinateBounds>> firstProviderAgenciesAndCoverage = new HashMap<String, List<CoordinateBounds>>();
firstProviderAgenciesAndCoverage.put("a1", Arrays.asList(
new CoordinateBounds(1, 1, 3, 3), new CoordinateBounds(2, 2, 4, 4)));
firstProviderAgenciesAndCoverage.put("a2",
Arrays.asList(new CoordinateBounds(2, 5, 4, 6)));
providers.put(serviceA, firstProviderAgenciesAndCoverage);
SimpleFederatedService serviceB = Mockito.mock(SimpleFederatedService.class);
Map<String, List<CoordinateBounds>> secondProviderAgenciesAndCoverage = new HashMap<String, List<CoordinateBounds>>();
secondProviderAgenciesAndCoverage.put("b1", Arrays.asList(
new CoordinateBounds(5, 5, 7, 7), new CoordinateBounds(6, 6, 8, 8)));
secondProviderAgenciesAndCoverage.put("b2",
Arrays.asList(new CoordinateBounds(5, 2, 7, 4)));
providers.put(serviceB, secondProviderAgenciesAndCoverage);
FederatedServiceCollection registry = new FederatedServiceCollectionImpl(
providers);