@Test
	public void testModuleUploadClashing() {
		try {
			module().upload("http", source,
					new File("src/test/resources/spring-xd/xd/modules/processor/siDslModule.jar"));
			fail("Should have failed uploading module");
		}
		catch (AssertionError error) {
			assertThat(error.getMessage(), containsString("There is already a module named 'http' with type 'source'"));
		}
	}
This tests that options passed at usage time of a composed module are override definition values.
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractModuleCommandsTests.java