@Override
    public long read() {
        return gaugeSource.read();
    }
@Test
    public void whenReregister() {
        metricsRegistry.registerStaticProbe(this, "foo", MANDATORY,
                (LongProbeFunction) o -> 10);

        LongGauge gauge = metricsRegistry.newLongGauge("foo");

        gauge.read();

        metricsRegistry.registerStaticProbe(this, "foo", MANDATORY,
                (LongProbeFunction) o -> 11);

        assertEquals(11, gauge.read());
    }