@Test
public void test() {

    ArimaModelBuilder builder = new ArimaModelBuilder();
    int n = 240, m = 10;
    for (int i = 0; i < m; ++i) {
        double[] x = builder.generate(builder.createModel(Polynomial.of(new double[]{1, -.7, .5}), Polynomial.ONE, 1), n);
        BurgAlgorithm burg = new BurgAlgorithm();
        //Peaks peaks=new Peaks(new TsData(TsFrequency.Monthly, 1980, 0, x, true), 240, false);
        assertTrue(burg.solve(new ReadDataBlock(x), 30));
    }
}