public Set<Map.Entry<Identifier, UntypedMetric>> entrySet() {
        return values.entrySet();
    }
@Test
    final void testEntrySet() {
        assertEquals(0, bucket.entrySet().size());
        for (int i = 0; i < 4; ++i) {
            bucket.put(new Sample(new Measurement(i), new Identifier("nalle_" + i, null), AssumedType.GAUGE));
        }
        assertEquals(4, bucket.entrySet().size());
        for (int i = 0; i < 4; ++i) {
            bucket.put(new Sample(new Measurement(i), new Identifier("nalle",
                            new Point(new ImmutableMap.Builder<String, Integer>().put("dim", Integer.valueOf(i)).build())),
                    AssumedType.GAUGE));
        }
        assertEquals(8, bucket.entrySet().size());
        int nalle = 0, nalle0 = 0, nalle1 = 0, nalle2 = 0, nalle3 = 0;
        for (Entry<Identifier, UntypedMetric> x : bucket.entrySet()) {
            String metricName = x.getKey().getName();
            switch (metricName) {
                case "nalle" -> ++nalle;
                case "nalle_0" -> ++nalle0;
                case "nalle_1" -> ++nalle1;
                case "nalle_2" -> ++nalle2;
                case "nalle_3" -> ++nalle3;
                default -> throw new IllegalStateException();
            }
        }
        assertEquals(4, nalle);
        assertEquals(1, nalle0);
        assertEquals(1, nalle1);
        assertEquals(1, nalle2);
        assertEquals(1, nalle3);
    }