@Test
	public void testDeleteComposedModuleUsedByOtherModule() {
		module().compose("myhttp", "http | filter");
		module().compose("evenbetterhttp", "myhttp | transform");
		assertFalse(module().delete("myhttp", ModuleType.source));

		// Now delete blocking module
		assertTrue(module().delete("evenbetterhttp", ModuleType.source));
		assertTrue(module().delete("myhttp", ModuleType.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