@Test
public void testProcess_WithContext() throws IOException {

  TraceContext traceContext = tracer.startSpan("test");
  tracer.reset();
  responseInterceptor.process(response, traceContext);
  assertThat(tracer.endSpanEvents).hasSize(1);
  EndSpanEvent endEvent = tracer.endSpanEvents.get(0);
  assertThat(endEvent.getTraceContext()).isEqualTo(traceContext);
  assertThat(tracer.annotateEvents).hasSize(1);
  AnnotateEvent annotateEvent = tracer.annotateEvents.get(0);
  assertThat(annotateEvent.getLabels().getLabels()).containsAllOf(
      new Label("/response/size", "123"),
      new Label("/http/status_code", "200")
  );
  assertThat(annotateEvent.getTraceContext()).isEqualTo(traceContext);
}