@Test
    final void testHasIdentifier() {
        for (int i = 0; i < 4; ++i) {
            bucket.put(new Sample(new Measurement(i), new Identifier("nalle_" + i, new Point(
                            new ImmutableMap.Builder<String, Integer>().put(String.valueOf(i), Integer.valueOf(i)).build())),
                    AssumedType.GAUGE));
        }
        for (int i = 0; i < 4; ++i) {
            assertTrue(bucket.hasIdentifier(new Identifier("nalle_" + i, new Point(new ImmutableMap.Builder<String, Integer>().put(
                    String.valueOf(i), Integer.valueOf(i)).build()))));
        }
    }
Functional tests for the value buckets, as implemented in the class Bucket,
and by extension the value store itself, UntypedValue.

@author Steinar Knutsen
container-core/src/test/java/com/yahoo/metrics/simple/BucketTest.java