@Test
	public void testLegitOptionResolution() {
		ConfigurableEnvironment parentEnv = new AbstractEnvironment() {

			@Override
			protected void customizePropertySources(MutablePropertySources propertySources) {
				propertySources.addFirst(singleton("user", "eric"));
			}
		};
		EnumerablePropertySource<?> modulePS = singleton("host", "localhost");
		ModuleEnvironment moduleEnvironment = new ModuleEnvironment(modulePS, parentEnv);
		assertThat(moduleEnvironment.getProperty("user"), equalTo("eric"));
		assertThat(moduleEnvironment.getProperty("host"), equalTo("localhost"));

	}
Tests for {@link ModuleEnvironment}.

@author Eric Bottard
spring-xd-module/src/test/java/org/springframework/xd/module/core/ModuleEnvironmentTests.java