### Question:
SimpleSpanProcessor implements SpanProcessor { @Override public CompletableResultCode shutdown() { if (isShutdown.getAndSet(true)) { return CompletableResultCode.ofSuccess(); } return spanExporter.shutdown(); } private  SimpleSpanProcessor(SpanExporter spanExporter, boolean sampled); @Override void onStart(ReadWriteSpan span); @Override boolean isStartRequired(); @Override void onEnd(ReadableSpan span); @Override boolean isEndRequired(); @Override CompletableResultCode shutdown(); @Override CompletableResultCode forceFlush(); static Builder newBuilder(SpanExporter spanExporter);  }### Answer:
@Test void shutdown() { simpleSampledSpansProcessor.shutdown(); verify(spanExporter).shutdown(); }