private void assertDeleteFailsWhenPartOfStreamDef(ModulesController modulesController) {
		try {
			modulesController.delete(ModuleType.source, "compositesource");
			fail("Should not be able to delete composite module if it is part of a stream definition");
		}
		catch (DependencyException e) {
			assertEquals("name of composite module not as expected", "compositesource", e.getName());
		}
	}
Tests for streams created with composed modules.

@author Mark Fisher
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/stream/ComposedModuleStreamTests.java