### Question:
InMemorySpanExporter implements SpanExporter { public void reset() { synchronized (this) { finishedSpanItems.clear(); } } private  InMemorySpanExporter(); static InMemorySpanExporter create(); List<SpanData> getFinishedSpanItems(); void reset(); @Override CompletableResultCode export(Collection<SpanData> spans); @Override CompletableResultCode flush(); @Override CompletableResultCode shutdown();  }### Answer:
@Test void reset() { tracer.spanBuilder("one").startSpan().end(); tracer.spanBuilder("two").startSpan().end(); tracer.spanBuilder("three").startSpan().end(); List<SpanData> spanItems = exporter.getFinishedSpanItems(); assertThat(spanItems).isNotNull(); assertThat(spanItems.size()).isEqualTo(3); exporter.reset(); assertThat(exporter.getFinishedSpanItems()).isEmpty(); }