@Test
public void testMapJobConfigurationsWithListener() {

    final Collection<org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration> jobConfigurations = new LinkedList<>();
    final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobListenerConfiguration jobListenerConfiguration = ApiTestHelper.createJobListenerConfiguration
            ("src/test/", "*.txt", org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobListenerType.LOCAL_FOLDER_LISTENER);
    final org.tuxdevelop.spring.batch.lightmin.api.resource.admin.JobConfiguration jobConfiguration = ApiTestHelper.createJobConfiguration(jobListenerConfiguration);
    jobConfiguration.setJobConfigurationId(1L);
    final Map<String, JobParameter> parameters = new HashMap<>();
    final JobParameter jobParameterDouble = new JobParameter();
    jobParameterDouble.setParameter(10.1);
    jobParameterDouble.setParameterType(ParameterType.DOUBLE);
    final JobParameter jobParameterLong = new JobParameter();
    jobParameterLong.setParameter(20L);
    jobParameterLong.setParameterType(ParameterType.LONG);
    parameters.put("double", jobParameterDouble);
    parameters.put("long", jobParameterLong);
    final JobParameters jobParameters = new JobParameters();
    jobParameters.setParameters(parameters);
    jobConfiguration.setJobParameters(jobParameters);
    jobConfigurations.add(jobConfiguration);
    final JobConfigurations jobConfigurationsToMap = new JobConfigurations();
    jobConfigurationsToMap.setJobConfigurations(jobConfigurations);
    final Collection<JobConfiguration> result = ResourceToDomainMapper.map(jobConfigurationsToMap);
    this.assertJobConfigurations(result, jobConfigurationsToMap);
}