public InstantAndValue<T> remove(MetricKey metricKey) {
        return counters.remove(metricKey);
    }
@Test
    public void testRemoveWithNullKey() {
        LastValueTracker<Double> lastValueTracker = new LastValueTracker<>();
        assertThrows(NullPointerException.class, () -> lastValueTracker.remove(null));
    }