static SerializableFunction<LinkedHashMap<String, Double>,
            LinkedHashMap<String, Double>> getProbabilityMapFunction(final RegressionModel.NormalizationMethod normalizationMethod,
                                                                     final boolean isBinary) {
        if (UNSUPPORTED_NORMALIZATION_METHODS.contains(normalizationMethod)) {
            throw new KiePMMLInternalException(String.format("Unsupported NormalizationMethod %s",
                                                             normalizationMethod));
        } else {
            return getProbabilityMapFunctionSupported(normalizationMethod, isBinary);
        }
    }
@Test
    void getProbabilityMapUnsupportedFunction() {
        KiePMMLClassificationTableFactory.UNSUPPORTED_NORMALIZATION_METHODS.forEach(normalizationMethod -> {
            try {
                KiePMMLClassificationTableFactory.getProbabilityMapFunction(normalizationMethod, false);
            } catch (Throwable t) {
                assertThat(t).isInstanceOf(KiePMMLInternalException.class);
                String expected = String.format("Unsupported NormalizationMethod %s",
                        normalizationMethod);
                assertThat(t.getMessage()).isEqualTo(expected);
            }
            try {
                KiePMMLClassificationTableFactory.getProbabilityMapFunction(normalizationMethod, true);
            } catch (Throwable t) {
                assertThat(t).isInstanceOf(KiePMMLInternalException.class);
                String expected = String.format("Unsupported NormalizationMethod %s",
                        normalizationMethod);
                assertThat(t.getMessage()).isEqualTo(expected);
            }
        });
    }