protected DeploymentUnitStatus.State getJobState(String jobName) {
		JobDefinitionResource job = getJob(jobName);
		if (job == null) {
			throw new IllegalStateException(String.format("Job %s not deployed", jobName));
		}
		return DeploymentUnitStatus.State.valueOf(job.getStatus());
	}
Return the state of the given job.

@param jobName name of job for which to obtain state
@return the state of the job
spring-xd-distributed-test/src/test/java/org/springframework/xd/distributed/test/AbstractDistributedTests.java