@Test
	public void testDefaultValues() throws BindException {
		Map<String, String> values = new HashMap<String, String>();
		ModuleOptions interpolated = metadata.interpolate(values);

		EnumerablePropertySource<?> ps = interpolated.asPropertySource();
		String p1 = makeKey("pojo2", "fizz");
		String p2 = makeKey("pojo1", "foo");
		String p3 = makeKey("pojo1", "fooBar");
		assertThat(
				ps.getPropertyNames(),
				arrayContainingInAnyOrder(p1, p2, p3));
		assertThat(ps.getProperty(p1), equalTo((Object) "hello"));
		assertThat(ps.getProperty(p2), equalTo((Object) "somedefault"));
		assertThat(ps.getProperty(p3), equalTo((Object) "somedefault42"));
	}
Tests for HierarchicalCompositeModuleOptionsMetadata.

@author Eric Bottard
spring-xd-module/src/test/java/org/springframework/xd/module/options/HierarchicalCompositeModuleOptionsMetadataTests.java