}
}
private void testWithResolution(int x, int y) {
MatrixData matrix = new MatrixData(x,y);
PixelControllerResize pcr = new PixelControllerResize();
pcr.initAll();
Generator g = new PassThruGen(matrix);
Effect e = new PassThru(matrix);
Mixer m = new Checkbox(matrix);
ColorSet c = new ColorSet("test", new int[]{1,2,3});
Visual v = new Visual(g,e,m,c);
for (IResize rsz: pcr.getAllResizers()) {
BufferedImage bi = rsz.createImage(v.getBuffer(), matrix.getBufferXSize(), matrix.getBufferYSize());
int[] b1 = rsz.getBuffer(bi, matrix.getDeviceXSize(), matrix.getDeviceYSize());
int[] b2 = rsz.getBuffer(v.getBuffer(), matrix.getDeviceXSize(), matrix.getDeviceYSize(),
matrix.getBufferXSize(), matrix.getBufferYSize());
assertArrayEquals(b1, b2);