@Test
public void testMapJobConfigurations() {

    final Collection<JobConfiguration> jobConfigurations = new LinkedList<>();
    final JobSchedulerConfiguration jobSchedulerConfiguration = DomainTestHelper.createJobSchedulerConfiguration(null,
            10L, 10L, JobSchedulerType.PERIOD);
    final JobConfiguration jobConfiguration = DomainTestHelper.createJobConfiguration(jobSchedulerConfiguration);
    jobConfiguration.setJobConfigurationId(1L);
    final Map<String, Object> parameters = new HashMap<>();
    parameters.put("double", 10.1);
    parameters.put("long", 20L);
    jobConfiguration.setJobParameters(parameters);
    jobConfigurations.add(jobConfiguration);
    final JobConfigurations result = DomainToResourceMapper.map(jobConfigurations);
    this.assertJobConfigurations(result, jobConfigurations);
}