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 enrichGivenNoPreviousJobStatsAndWorkToDoProcessing() {
        JobStatsExtended extendedJobStats = jobStatsEnricher.enrich(getJobStats(0L, 1L, 0L, 0L));

        assertThat(extendedJobStats.getAmountSucceeded()).isZero();
        assertThat(extendedJobStats.getAmountFailed()).isZero();
        assertThat(extendedJobStats.getEstimation().isProcessingDone()).isFalse();
        assertThat(extendedJobStats.getEstimation().isEstimatedProcessingFinishedInstantAvailable()).isFalse();
    }