@Test
public void testProcess() {

    int N = 19;
    //int P=5;
    DataBlock in = new DataBlock(N);
    in.set(1);
    in.cumul();
    for (int P = 0; P < 10; ++P) {
        DataBlock out = in.deepClone();
        CopyEndPoints cnp = new CopyEndPoints(P);
        cnp.process(in, out);
        assertTrue(out.range(0, P + 1).isConstant());
        assertTrue(out.range(N - P - 1, N).isConstant());
    }
}