@Test
	public void testLookupSameNameDifferentTypes() {
		List<ModuleDefinition> matches = registry.findDefinitions(FILE_MODULE_NAME);
		assertThat(matches, hasItem(hasType(ModuleType.source)));
		assertThat(matches, hasItem(hasType(ModuleType.sink)));
		assertThat(matches, everyItem(hasName(FILE_MODULE_NAME)));
	}
Tests that {@link WritableResourceModuleRegistry} behaves as expected with well known {@link Resource} abstractions.

@author Eric Bottard
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/module/ResourceModuleRegistryTests.java