DIRECTORY, DATE_FORMAT, FILE_EXTENSION);
String fileName = DIRECTORY + File.separatorChar + jobName + '.' + FILE_EXTENSION;
try {
template.jobOperations().createJob(jobName, definition, false);
verifyJobCreated(jobName);
verifyJobState(jobName, DeploymentUnitStatus.State.undeployed);
template.jobOperations().deploy(jobName, null);
verifyJobState(jobName, DeploymentUnitStatus.State.failed);