@Test
	public void testSuccessfulInterpolation() throws Exception {
		Map<String, String> values = new HashMap<String, String>();
		values.put(makeKey("pojo1", "foo"), "value_of_foo");
		values.put(makeKey("pojo1", "bar"), "59");
		values.put(makeKey("pojo2", "fizz"), "value_of_fizz");
		ModuleOptions interpolated = metadata.interpolate(values);

		EnumerablePropertySource<?> ps = interpolated.asPropertySource();
		assertThat(ps.getProperty(makeKey("pojo2", "fizz")), equalTo((Object) "value_of_fizz"));
		assertThat(ps.getProperty(makeKey("pojo1", "foo")), equalTo((Object) "value_of_foo"));
		assertThat(ps.getProperty(makeKey("pojo1", "fooBar")), equalTo((Object) "value_of_foo59"));

	}
Tests for HierarchicalCompositeModuleOptionsMetadata.

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