protected BatchStatus getJobExecutionStatus(String jobName) {
		List<JobExecutionInfoResource> results = getJobExecInfoByName(jobName);
		Assert.isTrue(results.size() > 0, "No Job execution available for the job.");
		return results.get(0).getJobExecution().getStatus();
	}
Retrieves the first job execution from a list of job executions for the job name.

@param jobName a unique job name.
spring-xd-integration-test/src/test/java/org/springframework/xd/integration/test/AbstractJobTest.java