final void logJobFilterTime(JobFilter jobFilter, long durationInNanos) {
        if (NANOSECONDS.toMillis(durationInNanos) > 10) {
            getLogger().warn("JobFilter of type '{}' has slow performance of {}ms (a Job Filter should run under 10ms) which negatively impacts the overall functioning of JobRunr. JobRunr Pro can run slow running Job Filters without a negative performance impact.", jobFilter.getClass().getName(), NANOSECONDS.toMillis(durationInNanos));
        }
    }
@Test
    void ifJobFilterIsTooSlowAMessageIsLogged() {
        MyJobFilter myJobFilter = new MyJobFilter();
        JobCreationFilters jobCreationFilters = new JobCreationFilters(anEnqueuedJob().build(), new JobDefaultFilters(myJobFilter));
        final ListAppender<ILoggingEvent> logger = LoggerAssert.initFor(jobCreationFilters);

        jobCreationFilters.logJobFilterTime(myJobFilter, 11000000);
        jobCreationFilters.logJobFilterTime(myJobFilter, 11000000);
        jobCreationFilters.logJobFilterTime(myJobFilter, 11000000);
        jobCreationFilters.logJobFilterTime(myJobFilter, 11000000);
        jobCreationFilters.logJobFilterTime(myJobFilter, 11000000);

        assertThat(logger).hasWarningMessageContaining(
                "JobFilter of type 'org.jobrunr.jobs.filters.AbstractJobFiltersTest$MyJobFilter' has slow performance of 11ms (a Job Filter should run under 10ms) which negatively impacts the overall functioning of JobRunr",
                5,
                emptyMap()
        );
    }