@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 testDisplayNameIsUsedIfProvidedByJobBuilder() {
        Job job = anEnqueuedJob()
                .withName("My job name")
                .withJobDetails(jobDetails()
                        .withClassName(TestService.class)
                        .withMethodName("doWork")
                        .withJobParameter(2))
                .build();

        defaultJobFilter.onCreating(job);

        assertThat(job).hasJobName("My job name");
    }