@SuppressWarnings("unchecked")
	@Test
	public void testFindByName() {
		List<ModuleDefinition> result = registry.findDefinitions("foobar");
		assertThat(result, containsInAnyOrder(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