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