DeprecatedColorConverter implements Converter { @Override public Object convert(Type targetType, Object sourceValue) { return this.converter.convert(targetType, sourceValue); }  @Override Object convert(Type targetType, Object sourceValue);  }
@Test void convertRGB() { assertEquals(Color.WHITE, this.colorConverter.convert(Color.class, "255 , 255 , 255")); }
@Test void convertHTML() { assertEquals(Color.WHITE, this.colorConverter.convert(Color.class, "#ffffff")); assertEquals(Color.WHITE, this.colorConverter.convert(Color.class, "#FFFFFF")); }
@Test void convertInvalid() { Throwable exception = assertThrows(ConversionException.class, () -> this.colorConverter.convert(Color.class, "wrongformat")); assertEquals("Color value should be in the form of '#xxxxxx' or 'r,g,b'", exception.getMessage()); }