public static void setAssignExpressionValue(final BlockStmt body, final String assignExpressionName,
                                                final Expression value) {
        AssignExpr assignExpr = getAssignExpression(body, assignExpressionName)
                .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_IN_BODY, assignExpressionName,
                                                                      body)));
        assignExpr.setValue(value);
    }
@Test
    void setAssignExpressionValueNoAssignExpressions() {
        assertThatExceptionOfType(KiePMMLException.class).isThrownBy(() -> {
            final BlockStmt body = new BlockStmt();
            CommonCodegenUtils.setAssignExpressionValue(body, "NOMATCH", new DoubleLiteralExpr(24.22));
        });
    }