@Test public void currentSpan_retainsSharedFlag() {

  TraceContext context =
    TraceContext.newBuilder().traceId(1L).spanId(2L).shared(true).sampled(true).build();
  try (Scope ws = currentTraceContext.newScope(context)) {
    assertThat(tracer.currentSpan().context().shared()).isTrue();
  }
}