matchers.assertHas(mock(Description.class), "Yoda", matcher);
}
@Test public void should_fail_if_Matcher_is_not_met() {
matcher.shouldMatch(false);
Description description = new TestDescription("Testing");
try {
matchers.assertHas(description, "Yoda", matcher);
} catch (AssertionError e) {
assertEquals("[Testing] expecting:<'Yoda'> to have:<TestMatcher>", e.getMessage());
verify(failures).failure(same(description), any(ErrorMessageFactory.class));