source: class DeprecatedColorConverterTest {
  
      private Converter colorConverter;
  
      @Test
      void convertInvalid()
      {
  
target:         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());
      }
  
  }