strings.assertMatches(mock(Description.class), null, Pattern.compile(".*"));
}
@Test
public void should_fail_if_actual_does_not_match_regular_expression() {
Description description = new TestDescription("Testing");
try {
strings.assertMatches(description, "Yoda", Pattern.compile("Luke"));
} catch (AssertionError e) {
assertEquals("[Testing] expecting:<'Yoda'> to match regular expression:<'Luke'>", e.getMessage());
verify(failures).failure(same(description), any(ErrorMessageFactory.class));