@Test(expected = SpringBatchLightminApplicationException.class)
public void validateTaskExecutorNullTest() {

    final JobSchedulerConfiguration jobSchedulerConfiguration = new JobSchedulerConfiguration();
    jobSchedulerConfiguration.setCronExpression("0 0 12 * * ?");
    jobSchedulerConfiguration.setJobSchedulerType(JobSchedulerType.CRON);
    jobSchedulerConfiguration.setTaskExecutorType(null);
    jobSchedulerConfiguration.validate();
}