SpanContext { public TraceOptions getTraceOptions() { return traceOptions; } 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 testTraceOptions() { assertThat(first.getTraceOptions()).isEqualTo(new TraceOptions(0)); assertThat(second.getTraceOptions()).isEqualTo(new TraceOptions(1)); }