static Point map(MeasurementInfo info, Instant timestamp, Gauge<?> gauge) {
        Point.Builder builder = builder(info, timestamp);
        Object value = gauge.getValue();
        if (value instanceof Number) {
            builder.addField("value", (Number) value);
        } else {
            builder.addField("value", String.valueOf(value));
        }
        return builder.build();
    }
@Test
    void testMapGauge() {
        verifyPoint(MetricMapper.map(INFO, TIMESTAMP, (Gauge<Number>) () -> 42), "value=42");

        verifyPoint(MetricMapper.map(INFO, TIMESTAMP, (Gauge<Number>) () -> null), "value=null");

        verifyPoint(
                MetricMapper.map(INFO, TIMESTAMP, (Gauge<String>) () -> "hello"), "value=hello");

        verifyPoint(MetricMapper.map(INFO, TIMESTAMP, (Gauge<Long>) () -> 42L), "value=42");
    }