### Question:
DateExtractionHelper { public static boolean isDateInRange(ExtractedDate date) { ExtractedDate begin = DateParser.parseDate("1990-11-13T00:00:00Z", RegExp.DATE_ISO8601_YMD_T); ExtractedDate end = new ExtractedDateImpl(); DateExactness compareDepth = DateExactness.DAY; if (date.getExactness() != DateExactness.UNSET) { compareDepth = DateExactness.getCommonExactness(DateExactness.DAY, date.getExactness()); } DateComparator dateComparator = new DateComparator(compareDepth); boolean gt = dateComparator.compare(begin, date) > -1; boolean lt = dateComparator.compare(date, end) > -1; return gt && lt; } private  DateExtractionHelper(); static List<T> filter(List<? extends ExtractedDate> dates, Class<T> filter); static List<T> filterByRange(List<T> dates); static List<T> filterFullDate(List<T> dates); static List<List<T>> cluster(List<T> dates, DateExactness compareDepth); static int countDates(ExtractedDate date, List<? extends ExtractedDate> dates, DateExactness exactness); static List<E> getRatedDates(List<RatedDate<E>> dates, double rate); static List<D> filterExactest(List<D> dates); static double getHighestRate(List<? extends RatedDate<?>> ratedDates); static boolean isDateInRange(ExtractedDate date); static List<RatedDate<T>> setRate(List<T> dates, double rate);  }### Answer:
@Test public void testIsDateInRange() { ExtractedDate date = DateParser.parseDate("2010-01-01T12:30:30Z", RegExp.DATE_ISO8601_YMD_T); assertTrue(DateExtractionHelper.isDateInRange(date)); date = DateParser.parseDate("1990-11-13T00:00:00Z", RegExp.DATE_ISO8601_YMD_T); assertTrue(DateExtractionHelper.isDateInRange(date)); date = new ExtractedDateImpl(); assertTrue(DateExtractionHelper.isDateInRange(date)); date = DateParser.parseDate("1990-11-12T00:00:00Z", RegExp.DATE_ISO8601_YMD_T); assertFalse(DateExtractionHelper.isDateInRange(date)); date = DateParser.parseDate("2090-11-12T00:00:00Z", RegExp.DATE_ISO8601_YMD_T); assertFalse(DateExtractionHelper.isDateInRange(date)); date = DateParser.parseDate("Nov 8, 2007", RegExp.DATE_USA_MMMM_D_Y); assertTrue(DateExtractionHelper.isDateInRange(date)); date = DateParser.parseDate("3.9.2010", RegExp.DATE_EU_D_MM_Y); assertTrue(DateExtractionHelper.isDateInRange(date)); date = DateParser.parseDate("2010-09", RegExp.DATE_ISO8601_YM); assertTrue(DateExtractionHelper.isDateInRange(date)); }