### Question:
WatchItem implements Comparable<WatchItem> { public boolean isExpired() { return (fileName == null && expiredTimeMillis < System.currentTimeMillis()); } WatchItem(FileHandlerCallback fileHandlerCallback, long timeoutMillis, long fileLengthCheckDelay); @Override int compareTo(WatchItem o); FileHandlerCallback getFileHandlerCallback(); long getTimeoutMillis(); long getFileLengthCheckDelay(); long getExpiredTimeMillis(); String getFileName(); ItemStatus getStatus(); boolean isExpired(); CompletableFuture<Boolean> getFuture(); Boolean getFutureResult(); Boolean getFutureResultSync(); @Override String toString();  }### Answer:
@Test public void isExpired() { WatchItem item; item = new WatchItem(fHandler, -1, fileLengthCheckDelay); assertEquals(true, item.isExpired()); item = getWatchItem(); assertEquals(false, item.isExpired()); }