@Converter
    static Predicate obtainPredicateFromBeanName(
            final String predicateBeanName,
            final CamelContext camelContext) {
        return Optional.ofNullable(CamelContextHelper.lookup(camelContext, predicateBeanName, Predicate.class))
                .orElseThrow(() -> new IllegalStateException(ERROR_NO_PREDICATE_BEAN_FOUND));
    }
@Test
    void obtainPredicateFromBeanName() {
        context.getRegistry().bind(predicateBeanName, Predicate.class, predicateInstance);
        Predicate actualPredicate = DynamicRouterControlService.obtainPredicateFromBeanName(predicateBeanName, context);
        assertEquals(predicateInstance, actualPredicate);
    }