}
public void testVariant()
{
ExpressionEvaluator ev = newMock(ExpressionEvaluator.class);
ExpressionCache ec = newMock(ExpressionCache.class);
Location l = fabricateLocation(1);
IComponent component = newComponent();
Object compiled = new Object();
Object expressionValue1 = new Object();
Object expressionValue2 = new Object();
ValueConverter vc = newValueConverter();
expect(ec.getCompiledExpression("exp")).andReturn(compiled);
expect(ev.isConstant("exp")).andReturn(false);
expect(ev.readCompiled(component, compiled)).andReturn(expressionValue1);