@Test
	public void beingAJarHasPriorityOverBeingADir() {
		List<ModuleDefinition> definitions = registry.findDefinitions(ModuleType.source);
		assertThat(definitions, contains(ResourceModuleRegistryTests.hasName("i-am-a-valid-module")));
	}
Tests for ResourceModuleRegistry implementation logic.

@author Eric Bottard
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/module/WritableResourceModuleRegistryLogicTests.java