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

		String jobName = executeJobCreate(JOB_WITH_PARAMETERS_DESCRIPTOR);
		logger.info("Create job " + jobName);
		triggerJob(jobName);

		checkForJobInList(jobName, JOB_WITH_PARAMETERS_DESCRIPTOR, true);
		assertTrue("Job did not complete within time alotted", jobParametersHolder.isDone());

		CommandResult cr = createJob(jobName, "job");
		checkForFail(cr);
		checkBatchJobExistsErrorMessage(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