static KiePMMLCompoundPredicate getKiePMMLCompoundPredicate(final CompoundPredicate compoundPredicate,
                                                                final List<Field<?>> fields) {
        final BOOLEAN_OPERATOR booleanOperator =
                BOOLEAN_OPERATOR.byName(compoundPredicate.getBooleanOperator().value());
        final List<KiePMMLPredicate> kiePMMLPredicates = compoundPredicate.hasPredicates() ?
                getKiePMMLPredicates(compoundPredicate.getPredicates(), fields) : Collections.emptyList();
        return KiePMMLCompoundPredicate.builder(getKiePMMLExtensions(compoundPredicate.getExtensions()),
                                                booleanOperator)
                .withKiePMMLPredicates(kiePMMLPredicates)
                .build();
    }
@Test
    void getKiePMMLCompoundPredicate() {
        List<Field<?>> fields = IntStream.range(0, 3).mapToObj(i -> getRandomDataField()).collect(Collectors.toList());
        final CompoundPredicate toConvert = getRandomCompoundPredicate(fields);
        final KiePMMLCompoundPredicate retrieved =
                KiePMMLCompoundPredicateInstanceFactory.getKiePMMLCompoundPredicate(toConvert, fields);
        commonVerifyKKiePMMLCompoundPredicate(retrieved, toConvert);
    }