SpanContext { public TraceId getTraceId() { return traceId; } SpanContext(TraceId traceId, SpanId spanId, TraceOptions traceOptions); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); TraceId getTraceId(); SpanId getSpanId(); TraceOptions getTraceOptions(); SpanContext overrideOptions(TraceOptions overrideOptions);  }
@Test public void testGetTraceId() { assertThat(first.getTraceId()).isEqualTo(new TraceId(BigInteger.valueOf(10))); assertThat(second.getTraceId()).isEqualTo(new TraceId(BigInteger.valueOf(20))); }