@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 testLabelsIsUsedIfProvidedByAnnotation() {
        Job job = anEnqueuedJob()
                .withJobDetails(() -> testService.doWorkWithJobAnnotationAndLabels(3, "customer name"))
                .build();

        defaultJobFilter.onCreating(job);

        assertThat(job).hasLabels(Set.of("label-3 - customer name"));
    }