public static Matcher<EventData> hasAttributes(Matcher<Attributes> matcher) {
    return new FeatureMatcher<EventData, Attributes>(matcher, "EventData having attributes that ",
      "attributes") {
      @Override
      protected Attributes featureValueOf(EventData actual) {
        return actual.getAttributes();
      }
    };
  }
Helper methods for matching against instances of {@link EventData}.
hbase-client/src/test/java/org/apache/hadoop/hbase/client/trace/hamcrest/EventMatchers.java