@Test
public void smaWithWindowEqualOneIsJustData() {

    double[] data = createRandomArray(10);
    double[] average = TimeSeriesUtilities.simpleMovingAverage(data, 1);
    assertEquals("average has length of data.length", data.length, average.length);
    for (int i = 0; i < data.length; ++i) {
        assertEquals("average is just the original data", data[i], average[i], 1.0e-10);
    }
}