static void manageMissingValues(final KiePMMLMiningField miningField, final PMMLRequestData requestData) {
        MISSING_VALUE_TREATMENT_METHOD missingValueTreatmentMethod =
                miningField.getMissingValueTreatmentMethod() != null ?
                        miningField.getMissingValueTreatmentMethod()
                        : MISSING_VALUE_TREATMENT_METHOD.RETURN_INVALID;
        switch (missingValueTreatmentMethod) {
            case RETURN_INVALID:
                throw new KiePMMLInputDataException("Missing required value for " + miningField.getName());
            case AS_IS:
            case AS_MEAN:
            case AS_MODE:
            case AS_MEDIAN:
            case AS_VALUE:
                String missingValueReplacement = miningField.getMissingValueReplacement();
                if (missingValueReplacement != null) {
                    Object requiredValue =
                            miningField.getDataType().getActualValue(missingValueReplacement);
                    requestData.addRequestParam(miningField.getName(), requiredValue);
                }
                break;
            default:
                throw new KiePMMLException("Unmanaged INVALID_VALUE_TREATMENT_METHOD " + missingValueTreatmentMethod);
        }
    }
@Test
    void manageMissingValuesReturnInvalid() {
        assertThatExceptionOfType(KiePMMLException.class).isThrownBy(() -> {
            KiePMMLMiningField miningField = KiePMMLMiningField.builder("FIELD", null)
                    .withDataType(DATA_TYPE.STRING)
                    .withMissingValueTreatmentMethod(MISSING_VALUE_TREATMENT_METHOD.RETURN_INVALID)
                    .build();
            PreProcess.manageMissingValues(miningField, new PMMLRequestData());
        });
    }