static Predicate obtainPredicateFromExpression(
            final CamelContext camelContext,
            final String predExpression,
            final String expressionLanguage) {
        try {
            return camelContext.resolveLanguage(expressionLanguage).createPredicate(predExpression);
        } catch (Exception e) {
            String message = String.format(ERROR_INVALID_PREDICATE_EXPRESSION, expressionLanguage, predExpression);
            throw new IllegalArgumentException(message, e);
        }
    }
@Test
    void obtainPredicateFromExpressionWithError() {
        String expression = "not a valid expression";
        assertThrows(IllegalArgumentException.class,
                () -> DynamicRouterControlService.obtainPredicateFromExpression(context, expression, expressionLanguage));
    }