public void testBeanValidator_WithCustomValangFunctions2() throws Exception {
Map functionsByName = new HashMap();
functionsByName.put("tupper", UpperCaseFunction.class.getName());
ValangConditionExpressionParser conditionExpressionParser = new ValangConditionExpressionParser();
conditionExpressionParser.setCustomFunctions(functionsByName);
DefaultValidationRuleElementHandlerRegistry registry = new DefaultValidationRuleElementHandlerRegistry();
registry.setConditionExpressionParser(conditionExpressionParser);
registry.afterPropertiesSet();