@Test
public void testPositiveAndNegativeValue() {

    LOG.info("testPositiveAndNegativeValue");
    final MetricsCollector metricsCollector =
            new MetricsCollector(Duration.millis(METRIC_DURATION_MSECS), METRIC_NR_ENTRIES);
    final float positive = 8.0f;
    final float negative = -4.0f;
    metricsCollector.addValueNow(positive);
    metricsCollector.addValueNow(negative);
    verifyCollectorCountMinMaxSumAvgStdDev(metricsCollector, 2, negative, positive, 4.0f, 2.0f, 8.485281374f);
}