@Test
public void errorTest() {

    exceptions.expect(TimeSeriesException.class);
    exceptions.expectMessage("Impossible to fill buffer because calculated time series has not been synchronized on a finite time index");
    timeSeries.toArray();
}