@Before
	public void setupSuccessfulModuleComposition() throws IOException {
		ModuleDefinition any = Mockito.any();
		when(moduleRegistry.registerNew(any)).thenReturn(true);

		File config = temporaryFolder.newFolder("config");
		Properties props = new Properties();
		props.setProperty("options.foo.description", "the foo property");
		props.setProperty("options.foo.type", "String");
		props.setProperty("options.foo.default", "yummy");
		props.store(new FileOutputStream(new File(config, "foo.properties")), "module properties");
	}
Tests REST compliance of module-related endpoints.

@author Glenn Renfro
@author Mark Fisher
@author Gunnar Hillert
@author Ilayaperumal Gopinathan
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/rest/ModulesControllerIntegrationTests.java