@Test
public void testMirrorExtension() {
double[] data = {1, 2, 3, 4, 5};
double[] expect = {2, 1, 2, 3, 4, 5, 4};
double[] result = new Extensioner(data).schedule(new MirrorExtension(1)).execute();
assertArrayEquals(expect, result, 0);
expect = new double[]{5, 4, 3, 2, 1, 2, 3, 4, 5, 4, 3, 2, 1};
result = new Extensioner(data).schedule(new MirrorExtension(4)).execute();
assertArrayEquals(expect, result, 0);
expect = new double[]{4, 3, 2, 1, 2, 3, 4, 5, 0, 5, 4, 3};
result = new Extensioner(data)
.schedule(new ZeroPaddingToEven())
.schedule(new MirrorExtension(3)).execute();
assertArrayEquals(expect, result, 0);
}