@Bean
		ModuleFactory moduleFactory() {
			Properties properties = new Properties();
			properties.setProperty("foo", "foo");
			PropertiesPropertySource propertiesPropertySource = new PropertiesPropertySource("props",
					properties);
			env.getPropertySources().addLast(propertiesPropertySource);
			return new ModuleFactory(new ModuleOptionsMetadataResolver() {
				@Override
				public ModuleOptionsMetadata resolve(ModuleDefinition moduleDefinition) {
					return new PassthruModuleOptionsMetadata();
				}
			});
		}
@author Mark Fisher
@author David Turanski
@author Gary Russell
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/module/CompositeModuleTests.java