@Test
public void testCreate() {

    TimeSeriesIndex index = new TestTimeSeriesIndex(0L, 3);
    DoubleTimeSeries ts1 = TimeSeries.createDouble("ts1", index, 0d, 1d, 2d);
    assertEquals("ts1", ts1.getMetadata().getName());
    assertEquals(TimeSeriesDataType.DOUBLE, ts1.getMetadata().getDataType());
    assertArrayEquals(new double[] {0d, 1d, 2d}, ts1.toArray(), 0d);
}