### Question:
DateMatcher { public static boolean isDate(final String text) { for (final Pattern pattern : PATTERNS) { if (pattern.matcher(text).matches()) return true; } return false; } private  DateMatcher(); static boolean isDate(final String text);  }### Answer:
@Test(dataProvider = "dateStrings") public void testIsDate(final String s, final boolean expected) { Assert.assertEquals(DateMatcher.isDate(s), expected, s); }