static Matcher<ModuleDefinition>  hasName(final String name) {
		return new CustomMatcher<ModuleDefinition>("Module named " + name) {

			@Override
			public boolean matches(Object item) {
				return ((ModuleDefinition) item).getName().equals(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