public void testPredicate() throws Exception {
Exchange exchange = new DefaultExchange(context);
exchange.getIn().setBody(new File("src/test/resources/books.json"));
Language lan = context.resolveLanguage("jsonpath");
Predicate pre = lan.createPredicate("$.store.book[?(@.price < 10)]");
boolean cheap = pre.matches(exchange);
assertTrue("Should have cheap books", cheap);
pre = lan.createPredicate("$.store.book[?(@.price > 30)]");
boolean expensive = pre.matches(exchange);