@Test
	public void testLookupByType() {
		List<ModuleDefinition> matches = registry.findDefinitions(ModuleType.processor);
		assertThat(matches, hasItem(hasName(FILTER_MODULE_NAME)));
		assertThat(matches, hasItem(hasName(TRANSFORM_MODULE_NAME)));
		assertThat(matches, everyItem(hasType(ModuleType.processor)));
	}
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