installers( AlwaysRunBeforeContextBootstrapInstaller.class );
when( contextSettings.shouldRun( anyString(), anyObject() ) ).thenReturn( InstallerAction.EXECUTE );
AcrossListableBeanFactory moduleBeanFactory = mock( AcrossListableBeanFactory.class );
AcrossApplicationContextHolder moduleAcrossApplicationContextHolder = mock(
AcrossApplicationContextHolder.class );
when( moduleAcrossApplicationContextHolder.getBeanFactory() ).thenReturn( moduleBeanFactory );
when( module.hasApplicationContext() ).thenReturn( true );
when( module.getAcrossApplicationContextHolder() ).thenReturn( moduleAcrossApplicationContextHolder );
registry.runInstallersForModule( "", InstallerPhase.BeforeContextBootstrap );