@Test
public void addNumericPredictorWithoutExponent() {

    String predictorName = "predictorName";
    int exponent = 1;
    double coefficient = 1.23;
    NumericPredictor numericPredictor = PMMLModelTestUtils.getNumericPredictor(predictorName, exponent,
                                                                               coefficient);
    int arity = 3;
    ClassOrInterfaceDeclaration tableTemplate = new ClassOrInterfaceDeclaration();
    MethodDeclaration retrieved = KiePMMLRegressionTableRegressionFactory.addNumericPredictor(numericPredictor,
                                                                                              tableTemplate, arity);
    BlockStmt body = retrieved.getBody().get();
    String expected = String.format("{\n" +
                                            "    double coefficient = %s;\n" +
                                            "    // Ignoring exponent because it is 1\n" +
                                            "    return input * coefficient;\n" +
                                            "}", coefficient);
    assertEquals(expected, body.toString());
}