public class ConfigurableFailedJobCommandFactoryTest {
@Test
public void testConfigurableNumberOfRetries() throws InterruptedException {
DefaultJobExecutor jobExecutor = new DefaultJobExecutor();
jobExecutor.setCorePoolSize(2);
jobExecutor.setQueueSize(2);
jobExecutor.setMaxJobsPerAcquisition(5);
jobExecutor.setWaitTimeInMillis(50);
jobExecutor.setLockTimeInMillis(180000);
ProcessEngine processEngine = new StandaloneInMemProcessEngineConfiguration()
.setJobExecutorActivate(true)
.setJobExecutor(jobExecutor)
.setFailedJobCommandFactory(new ConfigurableFailedJobCommandFactory(2, 1))