@Test
public void validateForPeriodTest() {

    final JobSchedulerConfiguration jobSchedulerConfiguration = new JobSchedulerConfiguration();
    jobSchedulerConfiguration.setFixedDelay(1000L);
    jobSchedulerConfiguration.setInitialDelay(1000L);
    jobSchedulerConfiguration.setJobSchedulerType(JobSchedulerType.PERIOD);
    jobSchedulerConfiguration.setTaskExecutorType(TaskExecutorType.SYNCHRONOUS);
    try {
        jobSchedulerConfiguration.validate();
    } catch (final SpringBatchLightminApplicationException e) {
        fail(e.getMessage());
    }
}