public JobStatsExtended enrich(JobStats jobStats) {
        JobStats latestJobStats = getLatestJobStats(jobStats, previousJobStats);
        if (lock.tryLock()) {
            setFirstRelevantJobStats(latestJobStats);
            setJobStatsExtended(latestJobStats);
            setPreviousJobStats(latestJobStats);
            lock.unlock();
        }
        return jobStatsExtended;
    }
@Test
    void firstRelevantJobStatsIsUpdated() {
        JobStats firstJobStats = getJobStats(0L, 0L, 0L, 100L);
        JobStats secondJobStats = getJobStats(10L, 0L, 0L, 100L);
        jobStatsEnricher.enrich(firstJobStats);
        jobStatsEnricher.enrich(secondJobStats);

        JobStats jobStats = Whitebox.getInternalState(jobStatsEnricher, "firstRelevantJobStats");
        assertThat(jobStats).isEqualToComparingFieldByField(secondJobStats);
    }