static KiePMMLDiscretize getKiePMMLDiscretize(final Discretize discretize) {
        List<KiePMMLDiscretizeBin> discretizeBins = discretize.hasDiscretizeBins() ?
                getKiePMMLDiscretizeBins(discretize.getDiscretizeBins()) : Collections.emptyList();
        String mapMissingTo = discretize.getMapMissingTo() != null ? discretize.getMapMissingTo().toString() : null;
        String defaultValue = discretize.getDefaultValue() != null ? discretize.getDefaultValue().toString() : null;
        DATA_TYPE dataType = discretize.getDataType() != null ? DATA_TYPE.byName(discretize.getDataType().value()) :
                null;
        return new KiePMMLDiscretize(discretize.getField(),
                                     getKiePMMLExtensions(discretize.getExtensions()),
                                     discretizeBins,
                                     mapMissingTo,
                                     defaultValue,
                                     dataType);
    }
@Test
    void getKiePMMLDiscretize() {
        Discretize toConvert = getRandomDiscretize();
        KiePMMLDiscretize retrieved = KiePMMLDiscretizeInstanceFactory.getKiePMMLDiscretize(toConvert);
        commonVerifyKiePMMLDiscretize(retrieved, toConvert);
    }