assertExpression("${in.body.getAge}", 6);
}
public void testExceptionOGNLSimple() throws Exception {
exchange.getIn().setHeader(Exchange.AUTHENTICATION_FAILURE_POLICY_ID, "myPolicy");
exchange.setProperty(Exchange.EXCEPTION_CAUGHT, new CamelAuthorizationException("The camel authorization exception", exchange));
assertExpression("${exception.getPolicyId}", "myPolicy");
}