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

    metric.setDatapoints(datapoints);
    metrics.add(metric);
    List<Metric> transformedMetrics = anomalySTLTransform.transform(null, metrics, constants);
}