### Question:
JaegerGrpcSpanExporter implements SpanExporter { public static Builder newBuilder() { return new Builder(); } private  JaegerGrpcSpanExporter(String serviceName, ManagedChannel channel, long deadlineMs); @Override CompletableResultCode export(Collection<SpanData> spans); @Override CompletableResultCode flush(); static Builder newBuilder(); @Override CompletableResultCode shutdown(); static final String DEFAULT_HOST_NAME; static final String DEFAULT_ENDPOINT; static final String DEFAULT_SERVICE_NAME; static final long DEFAULT_DEADLINE_MS; }### Answer:
@Test void configTest() { Map<String, String> options = new HashMap<>(); String serviceName = "myGreatService"; String endpoint = "127.0.0.1:9090"; options.put("otel.exporter.jaeger.service.name", serviceName); options.put("otel.exporter.jaeger.endpoint", endpoint); JaegerGrpcSpanExporter.Builder config = JaegerGrpcSpanExporter.newBuilder(); JaegerGrpcSpanExporter.Builder spy = Mockito.spy(config); spy.fromConfigMap(options, ConfigBuilderTest.getNaming()).build(); Mockito.verify(spy).setServiceName(serviceName); Mockito.verify(spy).setEndpoint(endpoint); }