@Test
public void testColor2Hexadecimal() {

    Assert.assertEquals("magenta without alpha => " + MAGENTA, MAGENTA, //$NON-NLS-1$
        WProperties.color2Hexadecimal(Color.MAGENTA, false));
    Assert.assertEquals("magenta with alpha => " + MAGENTA_ALPHA, MAGENTA_ALPHA, //$NON-NLS-1$
        WProperties.color2Hexadecimal(Color.MAGENTA, true));
    Assert.assertEquals("grey with alpha => " + GREY_ALPHA, GREY_ALPHA, //$NON-NLS-1$
        WProperties.color2Hexadecimal(COLOR_ALPHA, true));
    Assert.assertEquals("grey withtout alpha => " + GREY, GREY, WProperties.color2Hexadecimal(COLOR_ALPHA, false)); //$NON-NLS-1$
}