try {
assertExpression("${in.body.getLines[last - XXX].getId}", 123);
fail("Should have thrown an exception");
} catch (RuntimeBeanExpressionException e) {
ExpressionIllegalSyntaxException cause = assertIsInstanceOf(ExpressionIllegalSyntaxException.class, e.getCause());
assertEquals("last - XXX", cause.getExpression());
}
}