DomainToResourceMapper { public static JobConfigurations map(final Collection<org.tuxdevelop.spring.batch.lightmin.domain.JobConfiguration> jobConfigurations) { final JobConfigurations response = new JobConfigurations(); if (jobConfigurations != null && !jobConfigurations.isEmpty()) { for (final org.tuxdevelop.spring.batch.lightmin.domain.JobConfiguration jobConfiguration : jobConfigurations) { final JobConfiguration jobConfigurationReponse = map(jobConfiguration); response.getJobConfigurations().add(jobConfigurationReponse); } } return response; } private  DomainToResourceMapper(); static JobConfigurations map(final Collection<org.tuxdevelop.spring.batch.lightmin.domain.JobConfiguration>
                                                jobConfigurations); static JobConfiguration map(final org.tuxdevelop.spring.batch.lightmin.domain.JobConfiguration
                                               jobConfiguration); static JobParameters map(final Map<String, Object> jobParameters);  }
@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); }