protected void job(final String jobName, final String jobDefinition, boolean isDeploy) {
		Assert.hasText(jobName, "The job name must be specified.");
		Assert.notNull(jobDefinition, "a job definition must not be empty.");
		springXDTemplate.jobOperations().createJob(jobName, jobDefinition, isDeploy);
		String action = (isDeploy) ? "deploy" : "undeploy";
		assertTrue("The job did not " + action + ". ",
				waitForJobDeploymentChange(jobName, WAIT_TIME, isDeploy));

	}
Creates the job definition and deploys it to the cluster being tested.

@param jobName       The name of the job
@param jobDefinition The definition that needs to be deployed for this job.
@param isDeploy      true deploy the job.  False do not deploy the job.
spring-xd-integration-test/src/test/java/org/springframework/xd/integration/test/AbstractJobTest.java