@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 testDisplayNameFilterAlsoWorksWithJobContext() {
        Job job = anEnqueuedJob()
                .withoutName()
                .withJobDetails(jobDetails()
                        .withClassName(TestService.class)
                        .withMethodName("doWorkWithAnnotationAndJobContext")
                        .withJobParameter(5)
                        .withJobParameter("John Doe")
                        .withJobParameter(JobParameter.JobContext))
                .build();

        defaultJobFilter.onCreating(job);

        assertThat(job.getJobName()).isEqualTo("Doing some hard work for user John Doe with id 5");
    }