//assertExpression(new XMLBeansStringXPathExpression("$name"), "James", "<foo><bar xyz='cheese'/></foo>");
//assertExpression(new XMLBeansStringXPathExpression("foo/bar/text()"), "cheese", "<foo><bar>cheese</bar></foo>");
}
protected void assertExpression(Expression expression, String expected, String xml) throws MessagingException {
MessageExchangeImpl exchange = new InOnlyImpl("dummy");
NormalizedMessage message = new NormalizedMessageImpl(exchange);
message.setProperty("name", "James");
message.setContent(new StringSource(xml));
Object value = expression.evaluate(exchange, message);
assertEquals("Expression: " + expression, expected, value);