@Test
public void getJobConfigurationMapTest() {

    when(this.properties.getApplicationName()).thenReturn(APPLICATION_NAME);
    final JobSchedulerConfiguration jobSchedulerConfiguration = DomainTestHelper.createJobSchedulerConfiguration(
            "0 0/5 * * * ?", null, null, JobSchedulerType.CRON);
    final JobConfiguration jobConfiguration = DomainTestHelper.createJobConfiguration(jobSchedulerConfiguration);
    jobConfiguration.setJobConfigurationId(1L);
    final JobConfiguration jobConfigurationSecond = DomainTestHelper.createJobConfiguration(jobSchedulerConfiguration);
    jobConfigurationSecond.setJobConfigurationId(2L);
    final Collection<JobConfiguration> jobConfigurations = new LinkedList<>();
    jobConfigurations.add(jobConfiguration);
    jobConfigurations.add(jobConfigurationSecond);
    final Collection<String> jobNames = new LinkedList<>();
    jobNames.add("sampleJob");
    when(this.jobConfigurationRepository.getAllJobConfigurationsByJobNames(jobNames, APPLICATION_NAME)).thenReturn(jobConfigurations);
    final Map<String, Collection<JobConfiguration>> result = this.defaultAdminService.getJobConfigurationMap(jobNames);
    assertThat(result).containsKey("sampleJob");
    assertThat(result.get("sampleJob")).hasSize(2);
}