@Override
    public void onCreating(AbstractJob job) {
        JobDetails jobDetails = job.getJobDetails();
        Optional<Job> jobAnnotation = getJobAnnotation(jobDetails);
        setJobName(job, jobAnnotation);
        setAmountOfRetries(job, jobAnnotation);
        setLabels(job, jobAnnotation);
    }
@Test
    void testDisplayNameByAnnotationReplacesVariables() {
        Job job = anEnqueuedJob().withoutName()
                .withJobDetails(() -> testService.doWorkWithAnnotationAndJobContext(67656, "the almighty user", JobContext.Null))
                .build();

        defaultJobFilter.onCreating(job);

        assertThat(job).hasJobName("Doing some hard work for user the almighty user with id 67656");
    }