static Map<String, SerializableFunction<Double, Double>> getNumericPredictorsMap(final List<NumericPredictor> numericPredictors) {
        return numericPredictors.stream()
                .collect(Collectors.toMap(numericPredictor ->numericPredictor.getField(),
                                          KiePMMLRegressionTableFactory::getNumericPredictorEntry));
    }
@Test
    void getNumericPredictorsMap() {
        final List<NumericPredictor> numericPredictors = IntStream.range(0, 3).mapToObj(index -> {
            String predictorName = "predictorName-" + index;
            double coefficient = 1.23 * index;
            return PMMLModelTestUtils.getNumericPredictor(predictorName, index, coefficient);
        }).collect(Collectors.toList());
        Map<String, SerializableFunction<Double, Double>> retrieved =
                KiePMMLRegressionTableFactory.getNumericPredictorsMap(numericPredictors);
        assertThat(retrieved).hasSameSizeAs(numericPredictors);
    }