@Module("ModuleTwo")
private ModuleConfig.BeanWithCurrentModules beanFromTwo;
@Test
public void verifyCurrentModuleWiredCorrectly() {
AcrossContextInfo contextInfo = AcrossContextUtils.getContextInfo( acrossContext );
assertNotNull( contextInfo );
AcrossModuleInfo moduleOne = contextInfo.getModuleInfo( "ModuleOne" );
assertNotNull( moduleOne );
ModuleConfig.BeanWithCurrentModules beanWithCurrentModules = beanRegistry.getBeanFromModule( "ModuleOne",
"beanWithCurrentModules" );
assertNull( beanWithCurrentModules.getParent() );
beanWithCurrentModules.assertCurrentModule( moduleOne.getModule() );
AcrossModuleInfo moduleTwo = contextInfo.getModuleInfo( "ModuleTwo" );
assertNotNull( moduleTwo );
beanWithCurrentModules = beanRegistry.getBeanFromModule( "ModuleTwo", "beanWithCurrentModules" );
beanWithCurrentModules.assertCurrentModule( moduleTwo.getModule() );
assertNotNull( beanWithCurrentModules.getParent() );