public void testSimpleSingleQuoteWithFunction() throws Exception {
exchange.getIn().setBody("World");
SimpleExpressionParser parser = new SimpleExpressionParser("'Hello ${body} how are you?'");
Expression exp = parser.parseExpression();
assertEquals("'Hello World how are you?'", exp.evaluate(exchange, String.class));
}
public void testSimpleSingleQuoteWithFunctionBodyAs() throws Exception {
exchange.getIn().setBody("World");
SimpleExpressionParser parser = new SimpleExpressionParser("'Hello ${bodyAs(String)} how are you?'");