### Question:
SVGAttributeParser { public static int toRGB(final int r, final int g, final int b, final int a) { return ((a & 0xFF) << 24) | ((r & 0xFF) << 16) | ((g & 0xFF) << 8) | ((b & 0xFF) << 0); }  static double toPixelValue(final String value,
                                      final double defaultValue); static double toPixelValue(final String value); static String toHexColorString(final String raw); static String rgbToHexString(final int r, final int g, final int b); static String rgbToHexString(final int r, final int g, final int b, final int a); static String rgbToHexString(int rgb); static int toRGB(final int r,
                            final int g,
                            final int b,
                            final int a);  }### Answer:
@Test public void testToRGB() { assertEquals(16777216, SVGAttributeParser.toRGB(0, 0, 0, 1)); assertEquals(16777471, SVGAttributeParser.toRGB(0, 0, 255, 1)); assertEquals(33488896, SVGAttributeParser.toRGB(255, 0, 0, 1)); assertEquals(33554431, SVGAttributeParser.toRGB(255, 255, 255, 1)); }