{
try
{
JXPathFilter myFilter = createObject(JXPathFilter.class);
myFilter.setPattern("foo/bar/");
myFilter.accept(new DefaultMuleMessage(xmlStringInput, muleContext));
fail("Invalid XPath should have thrown an exception");
}
//Now we have Jaxen on the class path we get a Jaxen exception, but this is an unchecked exception
catch (Exception e)
{