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