verify();
}
public void test_Variant()
{
ExpressionEvaluator ev = newMock(ExpressionEvaluator.class);
ExpressionCache ec = newMock(ExpressionCache.class);
Location l = fabricateLocation(1);
IComponent component = newComponent();
Node compiled = newMock(Node.class);
ExpressionAccessor accessor = newMock(ExpressionAccessor.class);
Object expressionValue1 = new Object();
Object expressionValue2 = new Object();
ValueConverter vc = newValueConverter();
expect(ec.getCompiledExpression("exp")).andReturn(compiled);
expect(ev.isConstant("exp")).andReturn(false);
expect(ec.getCompiledExpression(component, "exp")).andReturn(compiled);
expect(compiled.getAccessor()).andReturn(accessor);
expect(ev.read(component, accessor)).andReturn(expressionValue1);
expect(ev.read(component, accessor)).andReturn(expressionValue2);
replay();
ExpressionBinding b = new ExpressionBinding("param", l, vc, component,
"exp", ev, ec);