### Question:
MatchesRegex extends TypeSafeMatcher<String> { @Override public final void describeTo(Description description) { description.appendText("A string matching the regular expression: " + pattern.toString()); } MatchesRegex(Pattern pattern); @Override final void describeTo(Description description);  }### Answer:
@Test public void descriptionIsSensible() { MatchesRegex matchesPattern = new MatchesRegex(Pattern.compile("je[f]{3}")); Description description = new StringDescription(); matchesPattern.describeTo(description); assertThat(description.toString(), is("A string matching the regular expression: je[f]{3}")); }