private JobDefinitionResource getJob(String jobName) {
		PagedResources<JobDefinitionResource> list = distributedTestSupport.ensureTemplate()
				.jobOperations().list();

		for (JobDefinitionResource job : list) {
			if (job.getName().equals(jobName)) {
				return job;
			}
		}

		return null;
	}
Return a {@link JobDefinitionResource} with a name matching
the requested {@code jobName}.

@param jobName name of job

@return a {@code JobDefinitionResource} for the job or {@code null}
        if the job does not exist
spring-xd-distributed-test/src/test/java/org/springframework/xd/distributed/test/AbstractDistributedTests.java