Number applyCastInteger(double predictionDouble) {
        return targetField.getCastInteger() != null ? targetField.getCastInteger().getScaledValue(predictionDouble) :
                predictionDouble;
    }
@Test
    void applyCastInteger() {
        TargetField targetField = new TargetField(Collections.emptyList(), null, "string", null, null, null, null,
                                                  null);
        KiePMMLTarget kiePMMLTarget = getBuilder(targetField).build();
        assertThat((double) kiePMMLTarget.applyCastInteger(2.718)).isCloseTo(2.718, Offset.offset(0.0));
        targetField = new TargetField(Collections.emptyList(), null, "string", CAST_INTEGER.ROUND, null, null, null,
                                      null);
        kiePMMLTarget = getBuilder(targetField).build();
        assertThat((double) kiePMMLTarget.applyCastInteger(2.718)).isCloseTo(3.0, Offset.offset(0.0));
    }