@Test
	public void testCollidingModuleComposeWithForceAgainstUploadedModule() {
		module().upload("foobar", source, new File("src/test/resources/spring-xd/xd/modules/processor/siDslModule.jar"));

		// Without --force
		CommandResult result = getShell().executeCommand(
				"module compose foobar --definition \"time | transform\"");
		assertEquals("There is already a module named 'foobar' with type 'source'\n", result.getException().getMessage());

		// Now add --force
		module().compose("foobar", "time | transform", true);
		String info = module().info("foobar", source);
		assertThat(info, containsString("transform.expression"));
	}
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