@Test
    final void testMismatchedMerge() {
        Logger log = Logger.getLogger(Bucket.class.getName());
        boolean[] loggingMarker = new boolean[1];
        loggingMarker[0] = false;
        log.setUseParentHandlers(false);
        Handler logHandler = new CheckThatItWasLogged(loggingMarker);
        log.addHandler(logHandler);
        Bucket other = new Bucket();
        bucket.put(new Sample(new Measurement(2), new Identifier("nalle", null), AssumedType.GAUGE));
        other.put(new Sample(new Measurement(3), new Identifier("nalle", null), AssumedType.COUNTER));
        bucket.merge(other, true);
        assertTrue(loggingMarker[0]);
        log.removeHandler(logHandler);
        log.setUseParentHandlers(true);
    }
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