@Test
public void STLTest3() {

    constant = "2";
    constants.add(constant);
    datapoints.put(1000L, 10000.0);
    datapoints.put(2000L, 11000.0);
    datapoints.put(3000L, 12000.0);
    datapoints.put(4000L, 13000.0);
    datapoints.put(5000L, 14000.0);
    datapoints.put(6000L, 15000.0);
    datapoints.put(7000L, 16000.0);
    datapoints.put(8000L, 17000.0);
    datapoints.put(9000L, 18000.0);
    datapoints.put(10000L, 19000.0);
    datapoints.put(11000L, 40000.0);
    metric.setDatapoints(datapoints);
    metrics.add(metric);
    List<Metric> transformedMetrics = anomalySTLTransform.transform(null, metrics, constants);
    Map<Long, Double> anomalyScores = transformedMetrics.get(0).getDatapoints();
    expected.put(1000L, 0.932050);
    expected.put(2000L, 0.013450);
    expected.put(3000L, 26.718715);
    expected.put(4000L, 0.9751890);
    expected.put(5000L, 1.8400037);
    expected.put(6000L, 6.4613769);
    expected.put(7000L, 23.428043);
    expected.put(8000L, 8.8260322);
    expected.put(9000L, 40.497435);
    expected.put(10000L, 0.7422608);
    expected.put(11000L, 98.498233);
    assertEquals(expected.keySet(), anomalyScores.keySet());
    for (Long time : expected.keySet()) {
        assertEquals(expected.get(time), anomalyScores.get(time), 0.01);
    }
}