static MethodReferenceExpr getProbabilityMapFunctionSupportedExpression(final RegressionModel.NormalizationMethod normalizationMethod,
                                                                            final boolean isBinary) {
        String normalizationName = normalizationMethod.name();
        if (RegressionModel.NormalizationMethod.NONE.equals(normalizationMethod) && isBinary) {
            normalizationName += "Binary";
        }
        final String thisExpressionMethodName = String.format("get%sProbabilityMap", normalizationName);
        final CastExpr castExpr = new CastExpr();
        final String stringClassName = String.class.getSimpleName();
        final String doubleClassName = Double.class.getSimpleName();
        final ClassOrInterfaceType linkedHashMapReferenceType =
                getTypedClassOrInterfaceTypeByTypeNames(LinkedHashMap.class.getCanonicalName(),
                                                        Arrays.asList(stringClassName, doubleClassName));
        final ClassOrInterfaceType consumerType =
                getTypedClassOrInterfaceTypeByTypes(SerializableFunction.class.getCanonicalName(),
                                                    Arrays.asList(linkedHashMapReferenceType,
                                                                  linkedHashMapReferenceType));
        castExpr.setType(consumerType);
        castExpr.setExpression("KiePMMLClassificationTable");
        final MethodReferenceExpr toReturn = new MethodReferenceExpr();
        toReturn.setScope(castExpr);
        toReturn.setIdentifier(thisExpressionMethodName);
        return toReturn;
    }
@Test
    void getProbabilityMapFunctionSupportedExpression() throws IOException {
        MethodReferenceExpr retrieved =
                KiePMMLClassificationTableFactory.getProbabilityMapFunctionSupportedExpression(RegressionModel.NormalizationMethod.CAUCHIT, true);
        String text = getFileContent(TEST_01_SOURCE);
        Expression expected = JavaParserUtils.parseExpression(String.format(text,
                RegressionModel.NormalizationMethod.CAUCHIT.name()));
        assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue();
    }