static Matcher<ModuleDefinition> hasType(final ModuleType type) {
		return new CustomMatcher<ModuleDefinition>("Module with type " + type) {

			@Override
			public boolean matches(Object item) {
				return ((ModuleDefinition) item).getType() == type;
			}
		};
	}
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