static SerializableFunction<Double, Double> getNumericPredictorEntry(final NumericPredictor numericPredictor) {
        boolean withExponent = !Objects.equals(1, numericPredictor.getExponent());
        if (withExponent) {
            return input -> KiePMMLRegressionTable.evaluateNumericWithExponent(input,
                                                                               numericPredictor.getCoefficient().doubleValue(), numericPredictor.getExponent().doubleValue());
        } else {
            return input -> KiePMMLRegressionTable.evaluateNumericWithoutExponent(input,
                                                                                  numericPredictor.getCoefficient().doubleValue());
        }
    }
@Test
    void getNumericPredictorEntryWithExponent() {
        String predictorName = "predictorName";
        int exponent = 2;
        double coefficient = 1.23;
        NumericPredictor numericPredictor = PMMLModelTestUtils.getNumericPredictor(predictorName, exponent,
                coefficient);
        SerializableFunction<Double, Double> retrieved =
                KiePMMLRegressionTableFactory.getNumericPredictorEntry(numericPredictor);
        assertThat(retrieved).isNotNull();
    }