### Question:
OtlpGrpcMetricExporter implements MetricExporter { public static Builder newBuilder() { return new Builder(); } private  OtlpGrpcMetricExporter(ManagedChannel channel, long deadlineMs); @Override CompletableResultCode export(Collection<MetricData> metrics); @Override CompletableResultCode flush(); static Builder newBuilder(); static OtlpGrpcMetricExporter getDefault(); @Override void shutdown(); static final String DEFAULT_ENDPOINT; static final long DEFAULT_DEADLINE_MS; }### Answer:
@Test void configTest() { Map<String, String> options = new HashMap<>(); options.put("otel.exporter.otlp.metric.timeout", "12"); options.put("otel.exporter.otlp.insecure", "true"); OtlpGrpcMetricExporter.Builder config = OtlpGrpcMetricExporter.newBuilder(); OtlpGrpcMetricExporter.Builder spy = Mockito.spy(config); spy.fromConfigMap(options, ConfigBuilderTest.getNaming()); verify(spy).setDeadlineMs(12); verify(spy).setUseTls(false); }