StartMain startMain = new StartMain( new String[ 0 ] );
beanManager = startMain.go().getBeanManager();
//Instantiate Paths used in tests for Path conversion
final Bean pathsBean = (Bean) beanManager.getBeans( Paths.class ).iterator().next();
final CreationalContext cc1 = beanManager.createCreationalContext( pathsBean );
paths = (Paths) beanManager.getReference( pathsBean,
Paths.class,
cc1 );
//Instantiate ConfigurationService
final Bean configurationServiceBean = (Bean) beanManager.getBeans( ConfigurationService.class ).iterator().next();
final CreationalContext cc2 = beanManager.createCreationalContext( configurationServiceBean );
configurationService = (ConfigurationService) beanManager.getReference( configurationServiceBean,
ConfigurationService.class,
cc2 );
//Instantiate ConfigurationFactory
final Bean configurationFactoryBean = (Bean) beanManager.getBeans( ConfigurationFactory.class ).iterator().next();
final CreationalContext cc3 = beanManager.createCreationalContext( configurationFactoryBean );
configurationFactory = (ConfigurationFactory) beanManager.getReference( configurationFactoryBean,
ConfigurationFactory.class,
cc3 );
//Instantiate BuildResultsObserver
final Bean buildResultsObserverBean = (Bean) beanManager.getBeans( BuildResultsObserver.class ).iterator().next();
final CreationalContext cc4 = beanManager.createCreationalContext( buildResultsObserverBean );
buildResultsObserver = (BuildResultsObserver) beanManager.getReference( buildResultsObserverBean,
BuildResultsObserver.class,
cc4 );
//Instantiate BuildService
final Bean buildServiceBean = (Bean) beanManager.getBeans( BuildService.class ).iterator().next();
final CreationalContext cc5 = beanManager.createCreationalContext( buildServiceBean );
buildService = (BuildService) beanManager.getReference( buildServiceBean,
BuildService.class,
cc5 );
//Instantiate ProjectService
final Bean projectServiceBean = (Bean) beanManager.getBeans( ProjectService.class ).iterator().next();
final CreationalContext cc6 = beanManager.createCreationalContext( projectServiceBean );
projectService = (ProjectService) beanManager.getReference( projectServiceBean,
ProjectService.class,
cc6 );
//Instantiate ProjectService
final Bean ruleNamesServiceBean = (Bean) beanManager.getBeans( RuleNamesService.class ).iterator().next();
final CreationalContext cc7 = beanManager.createCreationalContext( ruleNamesServiceBean );
ruleNamesService = (RuleNamesService) beanManager.getReference( ruleNamesServiceBean,
RuleNamesService.class,
cc7 );
//Define mandatory properties