return new BaseMatcher<TestOutcome>() {
@Override
public boolean matches(Object matchee) {
TestOutcome testOutcome = (TestOutcome) matchee;
return exists(testOutcome.getTags(), having(on(TestTag.class), is(expectedTag)));
}
@Override
public void describeTo(Description description) {
description.appendText("a test outcome with a tag ").appendValue(expectedTag);