static KiePMMLSimplePredicate getKiePMMLSimplePredicate(final SimplePredicate simplePredicate,
                                                            final List<Field<?>> fields) {
        final List<KiePMMLExtension> kiePMMLExtensions = getKiePMMLExtensions(simplePredicate.getExtensions());
        DataType dataType = getDataType(fields,simplePredicate.getField());
        Object value = DATA_TYPE.byName(dataType.value()).getActualValue(simplePredicate.getValue());
        return KiePMMLSimplePredicate.builder(simplePredicate.getField(),
                                              kiePMMLExtensions,
                                              OPERATOR.byName(simplePredicate.getOperator().value()))
                .withValue(value)
                .build();
    }
@Test
    void getKiePMMLSimplePredicate() {
        List<Field<?>> fields = IntStream.range(0, 3).mapToObj(i -> getRandomDataField()).collect(Collectors.toList());
        final SimplePredicate toConvert = getRandomSimplePredicate((DataField) fields.get(0));
        final KiePMMLSimplePredicate retrieved =
                KiePMMLSimplePredicateInstanceFactory.getKiePMMLSimplePredicate(toConvert, fields);
        commonVerifyKiePMMLSimplePredicate(retrieved, toConvert, (DataField) fields.get(0));
    }