### Question:
UtilColor { public static int inc(int value, int r, int g, int b) { final int alpha = value >> Constant.BYTE_4 & 0xFF; if (alpha == 0) { return 0; } final int red = value >> Constant.BYTE_3 & 0xFF; final int green = value >> Constant.BYTE_2 & 0xFF; final int blue = value >> Constant.BYTE_1 & 0xFF; return getRgbaValue(UtilMath.clamp(red + r, 0, 255), UtilMath.clamp(green + g, 0, 255), UtilMath.clamp(blue + b, 0, 255), UtilMath.clamp(alpha, 0, 255)); } private  UtilColor(); static int getRgbaValue(int r, int g, int b, int a); static int multiplyRgb(int rgb, double fr, double fg, double fb); static int inc(int value, int r, int g, int b); static double getDelta(ColorRgba a, ColorRgba b); static ColorRgba getWeightedColor(ImageBuffer surface, int sx, int sy, int width, int height); static boolean isOpaqueTransparentExclusive(ColorRgba colorA, ColorRgba colorB); static boolean isOpaqueTransparentExclusive(int colorA, int colorB);  }### Answer:
@Test void testRgbInc() { final int step = 5; for (int r = 0; r < Constant.UNSIGNED_BYTE; r += step) { for (int g = 0; g < Constant.UNSIGNED_BYTE; g += step) { for (int b = 0; b < Constant.UNSIGNED_BYTE; b += step) { for (int a = 0; a < Constant.UNSIGNED_BYTE; a += step) { final ColorRgba color = new ColorRgba(r, g, b, a); final ColorRgba colorInc = new ColorRgba(UtilColor.inc(color.getRgba(), r, g, b)); if (r != 0 && g != 0 && b != 0 && r != 255 && g != 255 && b != 255) { assertNotEquals(color.getRgba(), colorInc.getRgba()); } if (!(a == 0 && (r > 0 || g > 0 || b > 0))) { assertEquals(color.getAlpha(), colorInc.getAlpha()); assertEquals(UtilMath.clamp(color.getRed() + r, 0, 255), colorInc.getRed()); assertEquals(UtilMath.clamp(color.getGreen() + g, 0, 255), colorInc.getGreen()); assertEquals(UtilMath.clamp(color.getBlue() + b, 0, 255), colorInc.getBlue()); } } } } } }