@Test
	public void sanityChecks() {
		for (ModuleType moduleType : ModuleType.values()) {
			for (ModuleDefinition def : moduleRegistry.findDefinitions(moduleType)) {
				ModuleOptionsMetadata moduleOptionsMetadata = moduleOptionsMetadataResolver.resolve(def);
				for (ModuleOption mo : moduleOptionsMetadata) {
					assertNotNull(
							String.format("ModuleOption type should be provided for %s:%s/%s", moduleType,
									def.getName(), mo.getName()), mo.getType());
					assertFalse(
							String.format("ModuleOption description for %s:%s/%s should start with lowercase : '%s'",
									moduleType, def.getName(), mo.getName(), mo.getDescription()),
							Character.isUpperCase(mo.getDescription().charAt(0)));
					assertFalse(String.format("ModuleOption description for %s:%s/%s should not end with a dot : '%s'",
							moduleType, def.getName(), mo.getName(), mo.getDescription()),
							mo.getDescription().endsWith("."));

				}
			}
		}
	}
Integration test class to do various tests about {@link ModuleOptionsMetadata} provided by XD.

@author Eric Bottard
@author David Turanski
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/modules/metadata/ModuleOptionsMetadataSanityTests.java