@Test
public void testProcess() {

    int N = 100, FREQ = 12;
    //int P=5;
    DataBlock in = new DataBlock(N);
    in.set(1);
    in.cumul();
    for (int P = 0; P < (N - FREQ) / 2; ++P) {
        DataBlock out = in.deepClone();
        CopyYearEndPoints cnp = new CopyYearEndPoints(P, FREQ);
        cnp.process(in, out);
        DataBlock beg = out.range(0, P + FREQ);
        DataBlock end = out.range(N - P - FREQ, N);
        for (int i = 0; i < P; ++i) {
            assertTrue(beg.extract(i, -1, FREQ).isConstant());
            assertTrue(end.extract(i, -1, FREQ).isConstant());
        }
    }
}