@Test
public void whenStarJobs_withGivenYearAndMonth_runJobWithParameters() throws JobParametersInvalidException, JobExecutionAlreadyRunningException, JobRestartException, JobInstanceAlreadyCompleteException {

    taxCalculatorJobService.runTaxCalculatorJob(new JobStartParams(YEAR, MONTH));
    verify(jobLauncherMock).run(any(Job.class), jobParametersArgumentCaptor.capture());
    JobParameters jobParameters = jobParametersArgumentCaptor.getValue();
    assertThat(jobParameters.getLong("year")).isEqualTo(YEAR);
    assertThat(jobParameters.getLong("month")).isEqualTo(MONTH);
}