public static JobDashboardProgressBar get(Job job) {
        Map<String, Object> jobMetadata = job.getMetadata();
        return jobMetadata.keySet().stream().filter(key -> key.startsWith(JOBRUNR_PROGRESSBAR_KEY))
                .max(String::compareTo)
                .map(key -> new JobDashboardProgressBar(cast(jobMetadata.get(key))))
                .orElse(null);
    }
@Test
    void doesNotThrowExceptionIfNoJobProgressBarIsPresent() {
        final Job job = aJobInProgress().build();
        assertThatCode(() -> JobDashboardProgressBar.get(job)).doesNotThrowAnyException();

        assertThat(JobDashboardProgressBar.get(job)).isNull();
    }