### Question:
DateUtils { public static boolean isDate(String dateAsText) { return StringUtils.isNotEmpty(dateAsText) && dateAsText.matches(DATE_PATTERN); } private  DateUtils(); static boolean isDate(String dateAsText); static Date now(); static String toDateText(Date date); static String toDateText(Date date, String pattern); static Date getDate(String dateText); static Date getDate(String dateText, String pattern); static String toDateTime(Date date); static int currentYear(); static Calendar calendar(); static final String DEFAULT_DATE_TIME_FORMAT; static final String DATE_TIME_FORMAT; static final String TIME_FORMAT; static final String DATE_FORMAT; static final String MONTH_FORMAT; static final String DAY_FORMAT; static final String DATE_PATTERN; }### Answer:
@Test public void isDate() { assertTrue(DateUtils.isDate("2016-12-12")); assertTrue(DateUtils.isDate("2016-01-01")); assertTrue(DateUtils.isDate("0000-12-12")); assertTrue(DateUtils.isDate("3652-02-11")); }