{
public void test_Invariant()
{
ExpressionEvaluator ev = newMock(ExpressionEvaluator.class);
ExpressionCache ec = newMock(ExpressionCache.class);
IComponent component = newMock(IComponent.class);
Location l = fabricateLocation(1);
Node compiled = newMock(Node.class);
//ExpressionAccessor accessor = newMock(ExpressionAccessor.class);
Object expressionValue = "EXPRESSION-VALUE";
ValueConverter vc = newValueConverter();
expect(ec.getCompiledExpression("exp")).andReturn(compiled);
expect(compiled.getAccessor()).andReturn(null);
expect(ev.isConstant("exp")).andReturn(true);
expect(ec.getCompiledExpression(component, "exp")).andReturn(compiled);
expect(ev.readCompiled(component, compiled)).andReturn(expressionValue);
expect(component.getExtendedId()).andReturn("Foo/bar");