KiePMMLLinearNorm[] getLimitExpectedValue(final Number input) {
        int counter = 0;
        KiePMMLLinearNorm linearNorm = linearNorms.get(counter);
        KiePMMLLinearNorm startLinearNorm = null;
        while (linearNorm.getOrig() <= input.doubleValue() && counter < linearNorms.size() -1) {
            startLinearNorm = linearNorm;
            counter ++;
            linearNorm = linearNorms.get(counter);
        }
        int startIndex = linearNorms.indexOf(startLinearNorm);
        counter = linearNorms.size() -1;
        linearNorm = linearNorms.get(counter);
        KiePMMLLinearNorm endLinearNorm = null;
        while (linearNorm.getOrig() >= input.doubleValue() && counter > startIndex) {
            endLinearNorm = linearNorm;
            counter --;
            linearNorm = linearNorms.get(counter);
        }
        return new KiePMMLLinearNorm[]{startLinearNorm, endLinearNorm};
    }
@Test
    void getLimitExpectedValue() {
        KiePMMLNormContinuous kiePMMLNormContinuous = getKiePMMLNormContinuous(null, null, null);
        Number input = 24;
        KiePMMLLinearNorm[] retrieved = kiePMMLNormContinuous.getLimitExpectedValue(input);
        assertThat(retrieved[0]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(0));
        assertThat(retrieved[1]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(1));
        input = 28;
        retrieved = kiePMMLNormContinuous.getLimitExpectedValue(input);
        assertThat(retrieved[0]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(0));
        assertThat(retrieved[1]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(1));
        input = 30;
        retrieved = kiePMMLNormContinuous.getLimitExpectedValue(input);
        assertThat(retrieved[0]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(1));
        assertThat(retrieved[1]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(2));
        input = 31;
        retrieved = kiePMMLNormContinuous.getLimitExpectedValue(input);
        assertThat(retrieved[0]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(1));
        assertThat(retrieved[1]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(2));
        input = 36;
        retrieved = kiePMMLNormContinuous.getLimitExpectedValue(input);
        assertThat(retrieved[0]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(2));
        assertThat(retrieved[1]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(3));
        input = 37;
        retrieved = kiePMMLNormContinuous.getLimitExpectedValue(input);
        assertThat(retrieved[0]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(2));
        assertThat(retrieved[1]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(3));
        input = 40;
        retrieved = kiePMMLNormContinuous.getLimitExpectedValue(input);
        assertThat(retrieved[0]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(2));
        assertThat(retrieved[1]).isEqualTo(kiePMMLNormContinuous.linearNorms.get(3));
    }