factory = new ColorConverterFactory();
}
public void testVsConstantExpression() throws Exception {
ConstantExpression expr = ConstantExpression.color(Color.RED);
String expected = expr.evaluate(null, String.class );
Converter converter = factory.createConverter( Color.class, String.class, null );
String actual = converter.convert( Color.RED, String.class );
assertEquals( expected, actual );