boolean isInsideOpenClosed(Number toEvaluate) {
        if (leftMargin == null) {
            return toEvaluate.doubleValue() <= rightMargin.doubleValue();
        } else if (rightMargin == null) {
            return toEvaluate.doubleValue() > leftMargin.doubleValue();
        } else {
            return toEvaluate.doubleValue() > leftMargin.doubleValue() && toEvaluate.doubleValue() <= rightMargin.doubleValue();
        }
    }
@Test
    void isInsideOpenClosed() {
        KiePMMLInterval kiePMMLInterval = new KiePMMLInterval(null, 20, CLOSURE.OPEN_CLOSED);
        assertThat(kiePMMLInterval.isInsideOpenClosed(10)).isTrue();
        assertThat(kiePMMLInterval.isInsideOpenClosed(20)).isTrue();
        assertThat(kiePMMLInterval.isInsideOpenClosed(30)).isFalse();
        kiePMMLInterval = new KiePMMLInterval(20, null, CLOSURE.OPEN_CLOSED);
        assertThat(kiePMMLInterval.isInsideOpenClosed(30)).isTrue();
        assertThat(kiePMMLInterval.isInsideOpenClosed(20)).isFalse();
        assertThat(kiePMMLInterval.isInsideOpenClosed(10)).isFalse();
        kiePMMLInterval = new KiePMMLInterval(20, 40, CLOSURE.OPEN_CLOSED);
        assertThat(kiePMMLInterval.isInsideOpenClosed(30)).isTrue();
        assertThat(kiePMMLInterval.isInsideOpenClosed(10)).isFalse();
        assertThat(kiePMMLInterval.isInsideOpenClosed(20)).isFalse();
        assertThat(kiePMMLInterval.isInsideOpenClosed(40)).isTrue();
        assertThat(kiePMMLInterval.isInsideOpenClosed(50)).isFalse();
    }