@Override
  public Predicate<FileInfo> get() {
    return FileInfo -> {
      try {
        Long time = mGetter.apply(FileInfo);
        Interval interval = Interval.between(time, time + 1);
        return mInterval.intersect(interval).isValid();
      } catch (RuntimeException e) {
        LOG.debug("Failed to filter: ", e);
        return false;
      }
    };
  }
@Test
  public void testInvalidDateFormat() throws ParseException {
    FileFilter filter =
        FileFilter.newBuilder().setName("lastModifiedDate").setValue("2020-01-01, 2023-09-14")
                  .build();
    FileInfo info = new FileInfo();
    info.setLastModificationTimeMs(mDateFormat.parse("2021/09/15").getTime());

    mThrown.expect(UnsupportedOperationException.class);
    mThrown.expectMessage("Invalid filter name: ");

    FilePredicate.create(filter).get().test(info);
  }