IsUUID extends BaseMatcher<CharSequence> { @Override public void describeTo(final Description description) { description.appendText("valid UUID format"); }  static Matcher UUID(); @Override boolean matches(final Object arg); @Override void describeTo(final Description description);  }
@Test public void testDescribeTo() throws Exception { assertIsDescribedTo("valid UUID format", isUUIDMatcher); }