@Test
public void testDetect_nullForecast() {

    initDependencies(false);
    val metricDef = new MetricDefinition("some-key");
    val metricData = new MetricData(metricDef, 100.0, Instant.now().getEpochSecond());
    when(pointForecaster.forecast(metricData)).thenReturn(null);
    val result = (OutlierDetectorResult) detectorUnderTest.detect(metricData);
    assertNotNull(result);
    assertFalse(result.isWarmup());
    assertEquals(AnomalyLevel.UNKNOWN, result.getAnomalyLevel());
}