assertNotNull(registry.getModuleLoader("spring-"+ModuleTypes.ROOT));
assertNotNull(registry.getModuleLoader("spring-"+ModuleTypes.APPLICATION));
ApplicationManager applicationManager = (ApplicationManager) context.getBean("applicationManager");
Application application = applicationManager.getCurrentApplication();
RootModuleDefinition definition = new Provider().getModuleDefinition();
TransitionSet transitions = calculatorRegistry.getModificationExtractor(ModificationExtractorType.STRICT).getTransitions(application, null, definition);
TransitionManager transitionManager = (TransitionManager) context.getBean("transitionManager");
ModuleStateHolder moduleStateHolder = application.getModuleStateHolder();
transitionManager.processTransitions(moduleStateHolder, application, transitions);
ConfigurableApplicationContext parentContext = SpringModuleUtils.getRootSpringContext(moduleStateHolder);
FileMonitor bean = (FileMonitor) parentContext.getBean("bean1");
bean.lastModified((File) null);