public void exportMetrics(RequestContext context, PushTelemetryRequest request) {
        DefaultClientTelemetryPayload payload = getPayLoad(request);
        for (ClientTelemetryReceiver receiver : receivers) {
            receiver.exportMetrics(context, payload);
        }
    }
@Test
    public void testExportMetrics() throws UnknownHostException {
        assertTrue(clientMetricsReceiverPlugin.isEmpty());

        clientMetricsReceiverPlugin.add(telemetryReceiver);
        assertFalse(clientMetricsReceiverPlugin.isEmpty());

        assertEquals(0, telemetryReceiver.exportMetricsInvokedCount);
        assertTrue(telemetryReceiver.metricsData.isEmpty());

        byte[] metrics = "test-metrics".getBytes(StandardCharsets.UTF_8);
        clientMetricsReceiverPlugin.exportMetrics(ClientMetricsTestUtils.requestContext(),
            new PushTelemetryRequest.Builder(new PushTelemetryRequestData().setMetrics(metrics), true).build());

        assertEquals(1, telemetryReceiver.exportMetricsInvokedCount);
        assertEquals(1, telemetryReceiver.metricsData.size());
        assertEquals(metrics, telemetryReceiver.metricsData.get(0).array());
    }