### Question:
ZipkinSpanExporter implements SpanExporter { @Override public CompletableResultCode shutdown() { try { sender.close(); } catch (IOException e) { logger.log(Level.WARNING, "Exception while closing the Zipkin Sender instance", e); } return CompletableResultCode.ofSuccess(); } ZipkinSpanExporter(BytesEncoder<Span> encoder, Sender sender, String serviceName); @Override CompletableResultCode export(final Collection<SpanData> spanDataList); @Override CompletableResultCode flush(); @Override CompletableResultCode shutdown(); static Builder newBuilder(); static final String DEFAULT_ENDPOINT; static final String DEFAULT_SERVICE_NAME; }### Answer:
@Test void testShutdown() throws IOException { ZipkinSpanExporter exporter = ZipkinSpanExporter.newBuilder() .setServiceName("myGreatService") .setSender(mockSender) .build(); exporter.shutdown(); verify(mockSender).close(); }