public void cleanExpiredUploads() {
        jobMap.forEach((key, value) -> {
            if (value.isExpired()) {
                removeBadSession(key);
            }
        });
    }
@Test
    public void testCleanExpiredUploads() {
        UUID sessionID = UUID.randomUUID();

        Instant now = Instant.now();
        Instant expiredTime = now.minus(JobUploadStatus.EXPIRATION_MINUTES, ChronoUnit.MINUTES);

        JobMetaDataParameterObject jobMetaDataParameterObject = new JobMetaDataParameterObject();
        //Create a mock clock
        Clock mock = mock(Clock.class);
        when(mock.instant()).thenReturn(expiredTime, now);
        JobUploadStatus jobUploadStatus = new JobUploadStatus(jobMetaDataParameterObject, mock);


        jobMap.put(sessionID, jobUploadStatus);
        jobUploadStore.cleanExpiredUploads();

        assertThat(jobMap).isEmpty();
    }