    @Test
    public void getLastJobParametersTest() {

        final List<JobExecution> jobExecutions = new LinkedList<>();
        final JobParameters jobParameters = new JobParametersBuilder().addLong("long", 1L).addString("String",
                "someString").toJobParameters();
        final JobExecution jobExecution = new JobExecution(1L, jobParameters, "test");
        jobExecutions.add(jobExecution);
        when(this.lightminJobExecutionDao.getJobExecutions(anyString(), anyInt(), anyInt())).thenReturn(jobExecutions);
        final JobParameters result = this.jobService.getLastJobParameters("test");
        assertThat(result).isEqualTo(jobParameters);
    }