@Test
public void testForecast() {

    double currValue = random.nextDouble();
    MetricData metricData = new MetricData(metricDef, currValue, 0);
    PointForecast forecast = forecasterUnderTest.forecast(metricData);
    assertNull(forecast);
    for (int i = 0; i < 10; i++) {
        val prevValue = currValue;
        currValue = random.nextDouble();
        metricData = new MetricData(metricDef, currValue, 0);
        forecast = forecasterUnderTest.forecast(metricData);
        assertEquals(forecast.getValue(), prevValue, TOLERANCE);
    }
}