public void testEnrichEvaluateWithManager() throws Exception
{
ExpressionManager expressionManager = muleContext.getExpressionManager();
MuleMessage message = new DefaultMuleMessage("test", muleContext);
expressionManager.enrich("#[variable:foo]", message, "fooValue");
// Value required + found
Object result = expressionManager.evaluate("#[variable:foo]", message);
assertNotNull(result);
assertEquals("fooValue", result);