IsDateInLeapYear extends TypeSafeMatcher<Date> { @Override public void describeTo(final Description description) { description.appendText("a date in a leap year"); }  static Matcher<Date> leapYear(); @Override void describeTo(final Description description);  }
@Test public void testDescribeTo() throws Exception { BaseMatcherTest.assertIsDescribedTo("a date in a leap year", isLeapYearMatcher); }