@Test
	public void streamNameAdded() {
		ModuleDescriptor descriptor = new ModuleDescriptor.Builder()
				.setModuleDefinition(TestModuleDefinitions.dummy("testJob", ModuleType.job))
				.setGroup("foo")
				.setIndex(0)
				.build();
		Module module = new ResourceConfiguredModule(descriptor,
				new ModuleDeploymentProperties());

		assertEquals(0, module.getProperties().size());
		jobPlugin.preProcessModule(module);

		Properties moduleProperties = module.getProperties();

		assertEquals("foo", moduleProperties.getProperty(XD_JOB_NAME_KEY));
	}
@author Michael Minella
@author Gunnar Hillert
@author Gary Russell
@author Ilayaperumal Gopinathan
@author David Turanski
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/plugins/job/JobPluginTests.java