public static Matcher<SpanData> hasKind(SpanKind kind) {
    return new FeatureMatcher<SpanData, SpanKind>(equalTo(kind), "SpanData with kind that",
      "SpanKind") {
      @Override
      protected SpanKind featureValueOf(SpanData item) {
        return item.getKind();
      }
    };
  }
Helper methods for matching against instances of {@link SpanData}.
hbase-client/src/test/java/org/apache/hadoop/hbase/client/trace/hamcrest/SpanDataMatchers.java