public void disablingInfrastructureModuleIsNoProblem() {
Collection<AcrossModule> added =
list( requiresTwoThreeAndOptionalOne, one, requiresTwo, two, three, infrastructureRequiringTwo );
infrastructureRequiringTwo.setEnabled( false );
ModuleBootstrapOrderBuilder moduleBootstrapOrderBuilder = new ModuleBootstrapOrderBuilder( added );
Collection<AcrossModule> ordered = moduleBootstrapOrderBuilder.getOrderedModules();
assertEquals( list( two, three, one, requiresTwoThreeAndOptionalOne, requiresTwo, infrastructureRequiringTwo ),
ordered );
Collection<AcrossModule> dependencies = moduleBootstrapOrderBuilder.getConfiguredRequiredDependencies( one );
assertFalse( dependencies.contains( infrastructureRequiringTwo ) );
}