@Test public void nextSpan_uses_current_context() {

  Span child;
  try (Scope ws = tracing.currentTraceContext().newScope(parent)) {
    child = kafkaTracing.nextSpan(consumerRecord);
  }
  child.finish();
  assertThat(spans.get(0).id()).isEqualTo(child.context().spanIdString());
  assertChildOf(spans.get(0), parent);
}