public void testRegexTokenize() throws Exception {
Expression expression = regexTokenizeExpression(headerExpression("location"), ",");
ArrayList<String> expected = new ArrayList<String>(Arrays.asList(new String[] {"Islington", "London", "UK"}));
assertExpression(expression, exchange, expected);
Predicate predicate = contains(regexTokenizeExpression(headerExpression("location"), ","),
constantExpression("London"));
assertPredicate(predicate, exchange, true);
predicate = contains(regexTokenizeExpression(headerExpression("location"), ","),
constantExpression("Manchester"));