static Map<String, Double> getGroupedCategoricalPredictorMap(final List<CategoricalPredictor> categoricalPredictors) {
        final Map<String, Double> toReturn = new LinkedHashMap<>();
        for (CategoricalPredictor categoricalPredictor : categoricalPredictors) {
            toReturn.put(categoricalPredictor.getValue().toString(),
                         categoricalPredictor.getCoefficient().doubleValue());
        }
        return toReturn;
    }
@Test
    void getGroupedCategoricalPredictorMap() {
        final List<CategoricalPredictor> categoricalPredictors = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            String predictorName = "predictorName-" + i;
            double coefficient = 1.23 * i;
            categoricalPredictors.add(PMMLModelTestUtils.getCategoricalPredictor(predictorName, i, coefficient));
        }
        Map<String, Double> retrieved =
                KiePMMLRegressionTableFactory.getGroupedCategoricalPredictorMap(categoricalPredictors);
        assertThat(retrieved).isNotNull();
        assertThat(retrieved).hasSameSizeAs(categoricalPredictors);
        categoricalPredictors.forEach(categoricalPredictor ->
        {
            String key = categoricalPredictor.getValue().toString();
            assertThat(retrieved).containsKey(key);
            assertThat(retrieved.get(key)).isCloseTo(categoricalPredictor.getCoefficient().doubleValue(), Offset.offset(0.0));
        });
    }