@Test
	public void testSingleDefinitionLookup() {
		ModuleDefinition def = registry.findDefinition(FILE_MODULE_NAME, ModuleType.sink);
		assertNotNull(def);
		assertEquals(FILE_MODULE_NAME, def.getName());
		assertEquals(ModuleType.sink, def.getType());
	}
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