}
public void test_Resolve_Expression_Failure()
{
ExpressionEvaluator ev = newMock(ExpressionEvaluator.class);
ExpressionCache ec = newMock(ExpressionCache.class);
Location l = fabricateLocation(1);
IComponent component = newComponent();
Node compiled = newMock(Node.class);
ValueConverter vc = newValueConverter();
expect(ec.getCompiledExpression("exp")).andReturn(compiled);
expect(ev.isConstant("exp")).andReturn(false);
Throwable innerException = new RuntimeException("Failure");
ec.getCompiledExpression(component, "exp");
expectLastCall().andThrow(innerException);
replay();
ExpressionBinding b = new ExpressionBinding("param", l, vc, component,