@Test
	public void streamPropertiesAdded() {
		ModuleDescriptor moduleDescriptor = new ModuleDescriptor.Builder()
				.setModuleDefinition(TestModuleDefinitions.dummy("testsource", ModuleType.source))
				.setGroup("foo")
				.setIndex(0)
				.build();

		Module module = new ResourceConfiguredModule(moduleDescriptor,
				new ModuleDeploymentProperties());
		module.initialize();
		assertEquals(0, module.getProperties().size());
		plugin.preProcessModule(module);
		assertEquals(1, module.getProperties().size());
		assertEquals("foo", module.getProperties().getProperty(XD_STREAM_NAME_KEY));
	}
@author Mark Fisher
@author Jennifer Hickey
@author Gary Russell
@author David Turanski
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/plugins/stream/StreamPluginTests.java