### Question:
ColorUtils { public static Color toFxColor(final java.awt.Color awtColor) { return Color.rgb(awtColor.getRed(), awtColor.getGreen(), awtColor.getBlue(), awtColor.getAlpha() / 255d); } private  ColorUtils(); static java.awt.Color toAwtColor(final Color fxColor); static Color toFxColor(final java.awt.Color awtColor); static String toRGBCode(final Color color);  }### Answer:
@Test public void testToFxColor() { java.awt.Color awtColor = new java.awt.Color(255, 128, 0, 128); assertEquals("0xff800080", ColorUtils.toFxColor(awtColor).toString()); }