public Optional<String> evaluate(Number toEvaluate) {
        return interval.isIn(toEvaluate) ? Optional.of(binValue) : Optional.empty();
    }
@Test
    void evaluateClosedClosed() {
        KiePMMLDiscretizeBin kiePMMLDiscretizeBin = getKiePMMLDiscretizeBin(new KiePMMLInterval(null, 20,
                                                                                                CLOSURE.CLOSED_CLOSED));
        Optional<String> retrieved = kiePMMLDiscretizeBin.evaluate(10);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(BINVALUE);
        retrieved = kiePMMLDiscretizeBin.evaluate(20);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(BINVALUE);
        retrieved = kiePMMLDiscretizeBin.evaluate(30);
        assertThat(retrieved).isNotPresent();
        kiePMMLDiscretizeBin = getKiePMMLDiscretizeBin(new KiePMMLInterval(20, null, CLOSURE.CLOSED_CLOSED));
        retrieved = kiePMMLDiscretizeBin.evaluate(30);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(BINVALUE);
        retrieved = kiePMMLDiscretizeBin.evaluate(20);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(BINVALUE);
        retrieved = kiePMMLDiscretizeBin.evaluate(10);
        assertThat(retrieved).isNotPresent();
        kiePMMLDiscretizeBin = getKiePMMLDiscretizeBin(new KiePMMLInterval(20, 40, CLOSURE.CLOSED_CLOSED));
        retrieved = kiePMMLDiscretizeBin.evaluate(30);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(BINVALUE);
        retrieved = kiePMMLDiscretizeBin.evaluate(10);
        assertThat(retrieved).isNotPresent();
        retrieved = kiePMMLDiscretizeBin.evaluate(20);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(BINVALUE);
        retrieved = kiePMMLDiscretizeBin.evaluate(40);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(BINVALUE);
        retrieved = kiePMMLDiscretizeBin.evaluate(50);
        assertThat(retrieved).isNotPresent();
    }