Optional<String> getFromDiscretizeBins(Number toEvaluate) {
        return discretizeBins
                .stream()
                .map(kiePMMLNameValue -> kiePMMLNameValue.evaluate(toEvaluate))
                .filter(Optional::isPresent)
                .findFirst()
                .map(Optional::get);
    }
@Test
    void getFromDiscretizeBins() {
        KiePMMLDiscretize kiePMMLDiscretize = getKiePMMLDiscretize(null, null);
        Optional<String> retrieved = kiePMMLDiscretize.getFromDiscretizeBins(10);
        assertThat(retrieved).isPresent();
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(20);
        assertThat(retrieved).isNotPresent();
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(21);
        assertThat(retrieved).isNotPresent();
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(29);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(kiePMMLDiscretizeBin2.getBinValue());
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(30);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(kiePMMLDiscretizeBin2.getBinValue());
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(31);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(kiePMMLDiscretizeBin3.getBinValue());
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(32);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(kiePMMLDiscretizeBin3.getBinValue());
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(40);
        assertThat(retrieved).isNotPresent();
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(41);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(kiePMMLDiscretizeBin4.getBinValue());
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(42);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(kiePMMLDiscretizeBin4.getBinValue());
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(49);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(kiePMMLDiscretizeBin4.getBinValue());
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(50);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(kiePMMLDiscretizeBin4.getBinValue());
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(51);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(kiePMMLDiscretizeBin5.getBinValue());
        retrieved = kiePMMLDiscretize.getFromDiscretizeBins(52);
        assertThat(retrieved).isPresent();
        assertThat(retrieved.get()).isEqualTo(kiePMMLDiscretizeBin5.getBinValue());
    }