@SuppressWarnings("unchecked")
	@Test
	public void testFindDefinitions() {
		List<ModuleDefinition> definitions = registry.findDefinitions();

		assertThat(definitions, containsInAnyOrder(
				module("test-source", source),
				module("test-processor", processor),
				module("test-sink", sink),
				module("foobar", source),
				module("foobar", sink)
		));

	}
Tests the find [all] definitions behavior.
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/module/DelegatingModuleRegistryTests.java