@Test
public void shouldCreateSpanOnSend() {

  //Given
  final TracingProducerInterceptor<String, String> interceptor = new TracingProducerInterceptor<>();
  interceptor.configure(map);
  interceptor.tracing = tracing;
  //When
  interceptor.onSend(record);
  //Then
  final Span span = spans.getLast();
  assertNotNull(span);
}