FileSystemApplicationContextsFactoryBean implements FactoryBean<Object>, ApplicationContextAware { public void setApplicationContext(ApplicationContext applicationContext) { this.applicationContext = applicationContext; }  void setWorkflowArtifacts(WorkflowArtifacts[] workflowArtifacts); void setCopyConfiguration(boolean copyConfiguration); void setBeanFactoryPostProcessorClasses(Class<? extends BeanFactoryPostProcessor>[] beanFactoryPostProcessorClasses); void setBeanPostProcessorExcludeClasses(Class<?>[] beanPostProcessorExcludeClasses); Object getObject(); Class<?> getObjectType(); boolean isSingleton(); void setApplicationContext(ApplicationContext applicationContext);  }
@Test public void testSetApplicationContext() { ApplicationContext rootContext = new ClassPathXmlApplicationContext(new String[] { "classpath:org/springframework/data/hadoop/admin/env-context.xml", "classpath:org/springframework/data/hadoop/admin/data-source-context.xml", "classpath:org/springframework/data/hadoop/admin/execution-context.xml", }); contextFactoryBean.setApplicationContext(rootContext); }