### Question:
UrlDateGetter extends TechniqueDateGetter<UrlDate> { @Override public List<UrlDate> getDates(String url) { List<UrlDate> result = new ArrayList<UrlDate>(); for (DateFormat dateFormat : RegExp.URL_DATES) { ExtractedDate extractedDate = DateParser.findDate(url, dateFormat); if (extractedDate != null) { result.add(new UrlDate(extractedDate, url)); break; } } return result; }  @Override List<UrlDate> getDates(String url); @Override List<UrlDate> getDates(HttpResult httpResult); @Override List<UrlDate> getDates(Document document);  }### Answer:
@Test public void testGetUrlDate() { String time = "2010-06-30"; UrlDateGetter udg = new UrlDateGetter(); String url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals("2002-09-06", udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals("2010-09-23", udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); time = "2010-06"; url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); url = "http: assertEquals(time, udg.getDates(url).get(0).getNormalizedDateString()); }