@Test
	public void testJobLifecycleForMyJob() throws InterruptedException {
		JobParametersHolder.reset();
		final JobParametersHolder jobParametersHolder = new JobParametersHolder();

		String jobName = executeJobCreate(JOB_WITH_PARAMETERS_DESCRIPTOR);
		logger.info("Created Job " + jobName);
		checkForJobInList(jobName, JOB_WITH_PARAMETERS_DESCRIPTOR, true);
		triggerJob(jobName);
		assertTrue("Job did not complete within time alotted", jobParametersHolder.isDone());
		CommandResult cr = getShell().executeCommand("job undeploy --name " + jobName);
		checkForSuccess(cr);
		checkUndeployedJobMessage(cr, jobName);
	}
Test {@link JobCommands}.

@author Glenn Renfro
@author Gunnar Hillert
@author Ilayaperumal Gopinathan
@author Michael Minella
@since 1.0
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractJobCommandsTests.java