@Test
public void commonDeclareOutputFields() {

    String outputFieldName = "OUTPUTFIELDNAME";
    Object result = "RESULT";
    List<KiePMMLOutputField> outputFields = Collections.singletonList(KiePMMLOutputField.builder(outputFieldName, null).withResultFeature(PREDICTED_VALUE).build());
    StringJoiner joiner = new StringJoiner("");
    KiePMMLDescrRhsFactory.factory(ruleBuilder).commonDeclareOutputFields(outputFields, result, joiner);
    String retrieved = joiner.toString();
    String expected = String.format(ADD_PMML4_OUTPUT_FIELD, outputFieldName, result);
    assertEquals(expected, retrieved);
}