static void populateSchemaFromListOfRanges(Schema toPopulate, List<RangeNode> ranges) {
        Range range = consolidateRanges(ranges);
        if (range != null) {
            if (range.getLowEndPoint() != null) {
                if (range.getLowEndPoint() instanceof BigDecimal bigDecimal) {
                    toPopulate.minimum(bigDecimal);
                } else {
                    toPopulate.addExtension(DMNOASConstants.X_DMN_MINIMUM_VALUE, range.getLowEndPoint());
                }
                toPopulate.exclusiveMinimum(range.getLowBoundary() == Range.RangeBoundary.OPEN);
            }
            if (range.getHighEndPoint() != null) {
                if (range.getHighEndPoint() instanceof BigDecimal bigDecimal) {
                    toPopulate.maximum(bigDecimal);
                } else {
                    toPopulate.addExtension(DMNOASConstants.X_DMN_MAXIMUM_VALUE, range.getHighEndPoint());
                }
                toPopulate.exclusiveMaximum(range.getHighBoundary() == Range.RangeBoundary.OPEN);
            }
        }
    }
@Test
    void evaluateUnaryTestsForNumberRange() {
        List<String> toRange = Arrays.asList("(>1)", "(<=10)");
        List<RangeNode> ranges = getBaseNodes(toRange, RangeNode.class);
        Schema toPopulate = OASFactory.createObject(Schema.class);
        RangeNodeSchemaMapper.populateSchemaFromListOfRanges(toPopulate, ranges);
        assertEquals(BigDecimal.ONE, toPopulate.getMinimum());
        assertTrue(toPopulate.getExclusiveMinimum());
        assertEquals(BigDecimal.TEN, toPopulate.getMaximum());
        assertFalse(toPopulate.getExclusiveMaximum());
    }