static BufferedImage assertPixels(BufferedImage img, int... pixels) { assertIntArrayEquals(pixels, imageToPixels(img)); ret img; }