public static KiePMMLTarget getKiePMMLTarget(final Target target) {
        final List<TargetValue> targetValues = target.hasTargetValues() ? target.getTargetValues()
                .stream()
                .map(KiePMMLTargetInstanceFactory::getKieTargetValue)
                .collect(Collectors.toList()) : Collections.emptyList();
        final OP_TYPE opType = target.getOpType() != null ? OP_TYPE.byName(target.getOpType().value()) : null;
        final String field = target.getField() != null ?target.getField() : null;
        final CAST_INTEGER castInteger = target.getCastInteger() != null ?
                CAST_INTEGER.byName(target.getCastInteger().value()) : null;
        TargetField targetField = new TargetField(targetValues,
                                                  opType,
                                                  field,
                                                  castInteger,
                                                  target.getMin(),
                                                  target.getMax(),
                                                  target.getRescaleConstant(),
                                                  target.getRescaleFactor());
        final KiePMMLTarget.Builder builder = KiePMMLTarget.builder(targetField.getName(), Collections.emptyList(),
                                                                    targetField);
        return builder.build();
    }
@Test
    void getKiePMMLTarget() {
        final Target toConvert = getRandomTarget();
        KiePMMLTarget retrieved = KiePMMLTargetInstanceFactory.getKiePMMLTarget(toConvert);
        commonVerifyKiePMMLTarget(retrieved, toConvert);
    }