public boolean isIn(Number toEvaluate) {
        switch (closure) {
            case OPEN_OPEN:
                return isInsideOpenOpen(toEvaluate);
            case OPEN_CLOSED:
                return isInsideOpenClosed(toEvaluate);
            case CLOSED_OPEN:
                return isInsideClosedOpen(toEvaluate);
            case CLOSED_CLOSED:
                return isInsideClosedClosed(toEvaluate);
            default:
                throw new IllegalArgumentException("Unexpected closure: " + closure);
        }
    }
@Test
    void isIn() {
        KiePMMLInterval kiePMMLInterval = new KiePMMLInterval(20, 40, CLOSURE.OPEN_OPEN);
        assertThat(kiePMMLInterval.isIn(30)).isTrue();
        assertThat(kiePMMLInterval.isIn(10)).isFalse();
        assertThat(kiePMMLInterval.isIn(20)).isFalse();
        assertThat(kiePMMLInterval.isIn(40)).isFalse();
        assertThat(kiePMMLInterval.isIn(50)).isFalse();
        kiePMMLInterval = new KiePMMLInterval(20, 40, CLOSURE.OPEN_CLOSED);
        assertThat(kiePMMLInterval.isIn(30)).isTrue();
        assertThat(kiePMMLInterval.isIn(10)).isFalse();
        assertThat(kiePMMLInterval.isIn(20)).isFalse();
        assertThat(kiePMMLInterval.isIn(40)).isTrue();
        assertThat(kiePMMLInterval.isIn(50)).isFalse();
        kiePMMLInterval = new KiePMMLInterval(20, 40, CLOSURE.CLOSED_OPEN);
        assertThat(kiePMMLInterval.isInsideClosedOpen(30)).isTrue();
        assertThat(kiePMMLInterval.isInsideClosedOpen(10)).isFalse();
        assertThat(kiePMMLInterval.isInsideClosedOpen(20)).isTrue();
        assertThat(kiePMMLInterval.isInsideClosedOpen(40)).isFalse();
        assertThat(kiePMMLInterval.isInsideClosedOpen(50)).isFalse();
        kiePMMLInterval = new KiePMMLInterval(20, 40, CLOSURE.CLOSED_CLOSED);
        assertThat(kiePMMLInterval.isIn(30)).isTrue();
        assertThat(kiePMMLInterval.isIn(10)).isFalse();
        assertThat(kiePMMLInterval.isIn(20)).isTrue();
        assertThat(kiePMMLInterval.isIn(40)).isTrue();
        assertThat(kiePMMLInterval.isIn(50)).isFalse();
    }