protected void executeJobCreate(String jobName, String jobDefinition, boolean deploy) {
		CommandResult cr = executeCommand("job create --definition \"" + jobDefinition + "\" --name " + jobName
				+ (deploy ? " --deploy" : ""));
		String prefix = (deploy) ? "Successfully created and deployed job '" : "Successfully created job '";
		assertEquals(prefix + jobName + "'", cr.getResult());
		jobs.add(jobName);
		if (deploy) {
			bindJobTap(jobName);
			jobStateVerifier.waitForDeploy(jobName);
		}
		else {
			jobStateVerifier.waitForCreate(jobName);
		}
	}
Execute job create for the supplied job name/definition, and verify the command result.
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractJobIntegrationTest.java