@Test
public void registerSchedulerForJobPeriodTest() throws NoSuchJobException {

    when(this.jobRegistry.getJob("sampleJob")).thenReturn(this.sampleJob);
    final JobSchedulerConfiguration jobSchedulerConfiguration = DomainTestHelper.createJobSchedulerConfiguration(null,
            10L, 10L, JobSchedulerType.PERIOD);
    final JobConfiguration jobConfiguration = DomainTestHelper.createJobConfiguration(jobSchedulerConfiguration);
    jobConfiguration.setJobConfigurationId(1L);
    final String beanName = this.schedulerService.registerSchedulerForJob(jobConfiguration);
    assertThat(beanName).startsWith("sampleJob-PERIOD");
}