@Test public void annotate() {

  span.start();
  try (SpanInScope ws = tracing.tracer().withSpanInScope(span)) {
    spanCustomizer.annotate("foo");
  }
  span.flush();
  assertThat(spans.get(0).annotations())
    .extracting(Map.Entry::getValue)
    .containsExactly("foo");
}