boolean isInsideClosedOpen(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 isInsideClosedOpen() {
        KiePMMLInterval kiePMMLInterval = new KiePMMLInterval(null, 20, CLOSURE.CLOSED_OPEN);
        assertThat(kiePMMLInterval.isInsideClosedOpen(10)).isTrue();
        assertThat(kiePMMLInterval.isInsideClosedOpen(20)).isFalse();
        assertThat(kiePMMLInterval.isInsideClosedOpen(30)).isFalse();
        kiePMMLInterval = new KiePMMLInterval(20, null, CLOSURE.CLOSED_OPEN);
        assertThat(kiePMMLInterval.isInsideClosedOpen(30)).isTrue();
        assertThat(kiePMMLInterval.isInsideClosedOpen(20)).isTrue();
        assertThat(kiePMMLInterval.isInsideClosedOpen(10)).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();
    }