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