@Test
    final void testRedefinition() {
        MetricReceiver r = metricManager.get();
        final String metricName = "gah";
        r.addMetricDefinition(metricName, new MetricSettings.Builder().build());
        r.addMetricDefinition(metricName, new MetricSettings.Builder().histogram(true).build());
        assertTrue(r.getMetricDefinition(metricName).isHistogram());
    }
Functional test for simple metric implementation.

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