IsEmail extends TypeSafeMatcher<T> { @Override public void describeTo(final Description description) { description.appendText("a value equals to a valid email address"); }  static Matcher<T> email(); @Override void describeTo(final Description description);  }
@Test public void testDescribeTo() throws Exception { assertIsDescribedTo("a value equals to a valid email address", isEmailMatcher); }