public boolean isExpired() {
        Instant now = clock.instant();
        Duration between = Duration.between(lastUpdatedTime, now);
        // Compare elapsed time to EXPIRATION_MINUTES
        long minutes = between.toMinutes();
        return minutes >= EXPIRATION_MINUTES;
    }
@Test
    public void testIsExpired() {

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

        when(clock.instant()).thenReturn(expiredTime, now);

        jobUploadStatus.changeLastUpdatedTime();
        boolean result = jobUploadStatus.isExpired();
        assertTrue(result);
    }