}
public void testVariant()
{
MockControl evc = newControl(ExpressionEvaluator.class);
ExpressionEvaluator ev = (ExpressionEvaluator) evc.getMock();
MockControl ecc = newControl(ExpressionCache.class);
ExpressionCache ec = (ExpressionCache) ecc.getMock();
IComponent component = newComponent();
Object compiled = new Object();
Object expressionValue1 = new Object();
Object expressionValue2 = new Object();
ValueConverter vc = newValueConverter();
ec.getCompiledExpression("exp");
ecc.setReturnValue(compiled);
ev.isConstant("exp");
evc.setReturnValue(false);
ev.readCompiled(component, compiled);
evc.setReturnValue(expressionValue1);
ev.readCompiled(component, compiled);
evc.setReturnValue(expressionValue2);
replayControls();
ExpressionBinding b = new ExpressionBinding("param", fabricateLocation(1), vc, component,