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

    final JobSchedulerConfiguration jobSchedulerConfiguration = new JobSchedulerConfiguration();
    jobSchedulerConfiguration.setCronExpression("invalid");
    jobSchedulerConfiguration.validateCron();
}