@Test
    final void testOkMerge() {
        bucket.put(new Sample(new Measurement(2), new Identifier("nalle", null), AssumedType.GAUGE));
        Bucket otherNew = new Bucket();
        otherNew.put(new Sample(new Measurement(3), new Identifier("nalle", null), AssumedType.GAUGE));
        Bucket otherOld = new Bucket();
        otherOld.put(new Sample(new Measurement(5), new Identifier("nalle", null), AssumedType.GAUGE));
        bucket.merge(otherNew, true);
        bucket.merge(otherOld, false);
        Set<Entry<Identifier, UntypedMetric>> entries = bucket.entrySet();
        assertEquals(1, entries.size());
        Entry<Identifier, UntypedMetric> entry = entries.iterator().next();
        assertEquals(10, entry.getValue().getSum(), 0.0);
        assertEquals(3, entry.getValue().getLast(), 0.0);
        assertEquals(2, entry.getValue().getMin(), 0.0);
        assertEquals(5, entry.getValue().getMax(), 0.0);
        assertEquals(3, entry.getValue().getCount());
    }
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