JsonContainerConfig containerConfig =
new JsonContainerConfig(config,
Expressions.forTesting(new Functions()));
CapturingHttpFetcher httpFetcher = new CapturingHttpFetcher();
fetcher = new DefaultServiceFetcher(containerConfig, httpFetcher);
fetcher.setSecurityTokenCodec( new BasicSecurityTokenCodec() );
Multimap<String, String> services = fetcher.getServicesForContainer("default", "dontcare");
assertEquals(configuredServices, services);
assertNotNull( httpFetcher.request );
assertTrue( httpFetcher.request.isInternalRequest() );
}