public static Matcher<SpanData> hasStatusWithCode(StatusCode statusCode) {
    return hasStatusWithCode(is(equalTo(statusCode)));
  }
Helper methods for matching against instances of {@link SpanData}.
hbase-client/src/test/java/org/apache/hadoop/hbase/client/trace/hamcrest/SpanDataMatchers.java