protected CommandResult executeCommand(String command) {
		CommandResult cr = getShell().executeCommand(command);
		if (cr.getException() != null) {
			cr.getException().printStackTrace();
		}
		Assert.isTrue(cr.isSuccess(), "Failure.  CommandResult = " + cr.toString());
		return cr;
	}
Execute a command and verify the command result.
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractCommandTemplate.java