protected CommandResult executeCommandExpectingFailure(String command) {
		CommandResult cr = getShell().executeCommand(command);
		assertFalse("Expected command to fail.  CommandResult = " + cr.toString(), cr.isSuccess());
		return cr;
	}
Execute a command and verify the command result.
spring-xd-shell/src/test/java/org/springframework/xd/shell/AbstractShellIntegrationTest.java