public String compose(String name, String definition, boolean force) {
		CommandResult result = shell.executeCommand(String.format("module compose %s --definition \"%s\" --force %b", name,
				definition, force));
		assertNotNull("Module composition apparently failed. Exception is: " + result.getException(),
				result.getResult());
		Matcher matcher = COMPOSE_SUCCESS_PATTERN.matcher((CharSequence) result.getResult());
		assertTrue("Module composition apparently failed: " + result.getResult(), matcher.matches());
		String key = matcher.group(2) + ":" + matcher.group(1);
		modules.add(key);
		return key;
	}
Remembers created modules, in the form <type>:<name>.
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/ModuleTemplate.java