@Test
    public void testColorToString() {
        val color = new Color(10, 20, 30);
        val color2 = (Color) this.converter.convert(color.toString());
        assertEquals(color.getRed(), color2.getRed());
        assertEquals(color.getGreen(), color2.getGreen());
        assertEquals(color.getBlue(), color2.getBlue());
    }
This class tests the {@link ColorConverter} class.

@author Jerome Leleu
@since 1.1.0
pac4j-core/src/test/java/org/pac4j/core/profile/converter/ColorConverterTests.java