public void testCamelContextPropertiesExpression() throws Exception {
camelContext.getProperties().put("CamelTestKey", "CamelTestValue");
Expression expression = camelContextPropertyExpression("CamelTestKey");
assertExpression(expression, exchange, "CamelTestValue");
expression = camelContextPropertiesExpression();
Map<String, String> properties = CastUtils.cast(expression.evaluate(exchange, Map.class));
assertEquals("Get a wrong properties size", properties.size(), 1);
}
@Override
protected void setUp() throws Exception {