@Test(expected = IllegalStateException.class)
public void TooShortSTLTest() {

    constant = "2";
    constants.add(constant);
    datapoints.put(1000L, 1000.0);
    datapoints.put(2000L, 1000.0);
    datapoints.put(3000L, 1000.0);
    metric.setDatapoints(datapoints);
    metrics.add(metric);
    List<Metric> transformedMetrics = anomalySTLTransform.transform(null, metrics, constants);
}