public void testSimpleUnaryDecInt() throws Exception {
exchange.getIn().setBody(122);
SimpleExpressionParser parser = new SimpleExpressionParser("${body}--");
Expression exp = parser.parseExpression();
assertEquals(Integer.valueOf(121), exp.evaluate(exchange, Integer.class));
}
public void testHeaderNestedFunction() throws Exception {
exchange.getIn().setBody("foo");
exchange.getIn().setHeader("foo", "abc");