public static ModuleDefinition dummy(String name, ModuleType type) {
		try {
			File location = File.createTempFile("dummy-module", type + name);
			Assert.isTrue(location.delete(), "could not delete temp file");
			Assert.isTrue(location.mkdirs(), "could not re-create file as a dir");
			location.deleteOnExit();
			return new SimpleModuleDefinition(name, type, "file:" + location.getAbsolutePath());
		}
		catch (IOException e) {
			throw new RuntimeException(e);
		}
	}
Create a new definition for a dummy module, for testing purposes only. The resulting module is of the same kind
as returned by {@link org.springframework.xd.module.ModuleDefinitions#simple(String, org.springframework.xd.module.ModuleType, String)}
but the 'location' must not be relied upon.
@param name the name of the module
@param type the type of the module
spring-xd-test/src/main/java/org/springframework/xd/module/TestModuleDefinitions.java