@Test public void nextSpan_extractedTraceContext() {

  TraceContextOrSamplingFlags extracted = TraceContextOrSamplingFlags.create(context);
  assertThat(tracer.nextSpan(extracted).context())
    .extracting(TraceContext::traceId, TraceContext::parentId)
    .containsExactly(1L, 2L);
}