@Test
public void testCommandStarted() {

  commandListener.commandStarted(findStartEvent);
  assertThat(tracer.startSpanEvents).hasSize(1);
  StartSpanEvent startSpanEvent = tracer.startSpanEvents.get(0);
  assertThat(startSpanEvent.getName()).isEqualTo("find");
  assertThat(startSpanEvent.getOptions()).isEqualTo(null);
  assertThat(tracer.annotateEvents).hasSize(1);
  AnnotateEvent annotateEvent = tracer.annotateEvents.get(0);
  assertThat(annotateEvent.getLabels().getLabels()).containsAllOf(
      new Label("/mongodb/commandName", "find"),
      new Label("/mongodb/databaseName", "test-database"),
      new Label("/mongodb/collectionName", "test-collection"),
      new Label("/mongodb/requestId", "1"),
      new Label("/mongodb/batchSize", "20")
  );
  assertThat(annotateEvent.getTraceContext()).isEqualTo(startSpanEvent.getTraceContext());
}