Pattern.asPredicate demo