@Test
	public void testListStepExecutions() {
		String data = UUID.randomUUID().toString();
		String jobName = "tsle" + UUID.randomUUID().toString();

		FileJdbcJob job = new FileJdbcJob(FileJdbcJob.DEFAULT_DIRECTORY, FileJdbcJob.DEFAULT_FILE_NAME,
				FileJdbcJob.DEFAULT_TABLE_NAME, FileJdbcJob.DEFAULT_NAMES, FileJdbcJob.DEFAULT_DELETE_FILES);

		// Create a stream that writes to a file. This file will be used by the job.
		stream("dataSender", sources.http() + XD_DELIMITER
				+ sinks.file(FileJdbcJob.DEFAULT_DIRECTORY, DEFAULT_FILE_NAME).toDSL());
		sources.httpSource("dataSender").postData(data);
		job(jobName, job.toDSL(),true);
		jobLaunch(jobName);
		String query = String.format("SELECT data FROM %s", tableName);
		waitForTablePopulation(query, jdbcSink.getJdbcTemplate(), 1);

		List<String> results = jdbcSink.getJdbcTemplate().queryForList(query, String.class);

		assertEquals(1, results.size());

		for (String result : results) {
			assertEquals(data, result);
		}
		List<JobExecutionInfoResource> jobList = this.getJobExecInfoByName(jobName);
		logger.info("testing job executions for: " + jobName);
		assertEquals(1, jobList.size());
		long executionId = jobList.get(0).getExecutionId();
		logger.info("testing step executions for: " + jobName);
		List<StepExecutionInfoResource> stepExecutions = getStepExecutions(executionId);
		Iterator<StepExecutionInfoResource> iter = stepExecutions.iterator();
		assertEquals(2, stepExecutions.size());
		boolean step1MasterFound = false;
		boolean step1MasterPartitionFound = false;
		while (iter.hasNext()) {
			StepExecutionInfoResource resource = iter.next();
			assertEquals(BatchStatus.COMPLETED, resource.getStepExecution().getStatus());
			assertEquals(ExitStatus.COMPLETED, resource.getStepExecution().getExitStatus());
			if (resource.getStepExecution().getStepName().equals("step1-master")) {
				step1MasterFound = true;
			}
			else if (resource.getStepExecution().getStepName().equals("step1-master:partition0")) {
				step1MasterPartitionFound = true;
			}
		}
		assertTrue("step1-master was not found in step execution list", step1MasterFound);
		assertTrue("step1-master:partition0 was not found in step execution list", step1MasterPartitionFound);

	}
Removes the table created from a previous test.
spring-xd-integration-test/src/test/java/org/springframework/xd/integration/test/JobCommandTest.java