public String serializeJob(Job job) {
        return jsonMapper.serialize(job);
    }
@Test
    void onIllegalJobParameterCorrectExceptionIsThrown() {
        TestService.IllegalWork illegalWork = new TestService.IllegalWork(5);
        Job job = anEnqueuedJob()
                .withJobDetails(() -> testService.doIllegalWork(illegalWork))
                .build();

        assertThatCode(() -> jobMapper.serializeJob(job))
                .isInstanceOf(JobParameterJsonMapperException.class)
                .isNotExactlyInstanceOf(JobRunrException.class);
    }