@Test
public void testProcess_WithHeaders() throws Exception {

  TraceContext traceContext = requestInterceptor.process(requestWithHeaders);
  assertThat(tracer.startSpanEvents).hasSize(1);
  StartSpanEvent startEvent = tracer.startSpanEvents.get(0);
  assertThat(startEvent.getName()).isEqualTo("/foo/bar");
  assertThat(traceContext).isEqualTo(startEvent.getTraceContext());
  assertThat(tracer.annotateEvents).hasSize(1);
  AnnotateEvent annotateEvent = tracer.annotateEvents.get(0);
  assertThat(annotateEvent.getLabels().getLabels()).containsAllOf(
      new Label("/http/user_agent", "test-user-agent"),
      new Label("/request/size", "123456"),
      new Label("/http/method", "GET"),
      new Label("/http/client_protocol", "HTTP")
  );
  assertThat(annotateEvent.getTraceContext()).isEqualTo(startEvent.getTraceContext());
}