void (ImageFilter one, ImageFilter two) { RGBImageFilter rgb1 = (RGBImageFilter)one; RGBImageFilter rgb2 = (RGBImageFilter)two; for (int i = 0; i < 0x01000000; i++) { assertEquals(rgb1.filterRGB(0, 0, i), rgb2.filterRGB(0, 0, i)); } }