protected List<JobExecutionInfoResource> getJobExecInfoByName(String jobName) {
		PagedResources<JobExecutionInfoResource> jobExecutions = springXDTemplate.jobOperations().listJobExecutions();
		Iterator<JobExecutionInfoResource> iter = jobExecutions.iterator();
		List<JobExecutionInfoResource> result = new ArrayList<JobExecutionInfoResource>();
		while (iter.hasNext()) {
			JobExecutionInfoResource resource = iter.next();
			if (resource.getName().equals(jobName)) {
				result.add(resource);
			}
		}
		return result;
	}
Retrieve a list of JobExecutionInfoResources that have the name contained in the jobName parameter

@param jobName The search name
@return a list of JobExecutionInfoResources
spring-xd-integration-test/src/test/java/org/springframework/xd/integration/test/AbstractJobTest.java