@Test
	public void testLookupAll() {
		List<ModuleDefinition> matches = registry.findDefinitions();
		assertThat(matches, hasItem(both(hasName(FILTER_MODULE_NAME)).and(hasType(ModuleType.processor))));
		assertThat(matches, hasItem(both(hasName(FILE_MODULE_NAME)).and(hasType(ModuleType.source))));
		assertThat(matches, hasItem(both(hasName(FILE_MODULE_NAME)).and(hasType(ModuleType.sink))));
	}
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