@Test
public void testMapJobParameter() {

    final String parameterName = "Long";
    final Long value = 10L;
    final org.springframework.batch.core.JobParameters jobParameters =
            new JobParametersBuilder().addLong(parameterName, value).toJobParameters();
    final JobParameters result = BatchToResourceMapper.map(jobParameters);
    final Map<String, JobParameter> resultMap = result.getParameters();
    assertThat(resultMap.containsKey(parameterName)).isTrue();
    assertThat(resultMap.get(parameterName).getParameter()).isEqualTo(value);
}