### Question:
WebPageDateEvaluator { public static List<RatedDate<ExtractedDate>> getDates(Document document, PageDateType type) { Validate.notNull(document, "document must not be null"); Validate.notNull(type, "type must not be null"); ContentDateGetter contentDateGetter = new ContentDateGetter(); List<ContentDate> dates = contentDateGetter.getDates(document); List<RatedDate<ExtractedDate>> ratedDates = rate(dates, type); Collections.sort(ratedDates, RatedDateComparator.INSTANCE); return ratedDates; } private  WebPageDateEvaluator(); static List<RatedDate<ExtractedDate>> getDates(Document document, PageDateType type); static RatedDate<ExtractedDate> getBestDate(Document document, PageDateType type); static ExtractedDate getBestPubDateHtml5(Document document); static RatedDate<ExtractedDate> getBestDate(String url, PageDateType type); @SuppressWarnings("unchecked") static List<RatedDate<ExtractedDate>> rate(List<? extends ExtractedDate> extractedDates, PageDateType type);  }### Answer:
@Test public void testGetAllDates() throws Exception { File file = ResourceHelper.getResourceFile("/webPages/dateExtraction/zeit2.htm"); Document document = htmlParser.parse(file); List<RatedDate<ExtractedDate>> dates = WebPageDateEvaluator.getDates(document, PageDateType.PUBLISH); assertEquals(2, dates.size()); file = ResourceHelper.getResourceFile("/webPages/dateExtraction/zeit1.htm"); document = htmlParser.parse(file); dates = WebPageDateEvaluator.getDates(document, PageDateType.PUBLISH); assertEquals(5, dates.size()); file = ResourceHelper.getResourceFile("/webPages/dateExtraction/kullin.htm"); document = htmlParser.parse(file); dates = WebPageDateEvaluator.getDates(document, PageDateType.PUBLISH); assertEquals(12, dates.size()); }