}
}
public void testAuthenticationService() {
Map serviceFactories = new HashMap();
AuthenticationService authenticationService = new DefaultAuthenticationService();
serviceFactories.put("authentication", new TestGivenServiceFactory(
authenticationService
));
Services services = new Services(serviceFactories);
assertSame(authenticationService, services.getAuthenticationService());