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 evaluateUnaryTestsForDateRange() {
        List<LocalDate> expectedDates = Arrays.asList(LocalDate.of(2022, 1, 1), LocalDate.of(2024, 1, 1));
        List<String> formattedDates = expectedDates.stream()
                .map(toFormat -> String.format("@\"%s-0%s-0%s\"", toFormat.getYear(), toFormat.getMonthValue(), toFormat.getDayOfMonth()))
                .toList();
        List<String> toRange = Arrays.asList(String.format("(>%s)", formattedDates.get(0)), String.format("(<=%s)",
                                                                                                          formattedDates.get(1)));
        List<RangeNode> ranges = getBaseNodes(toRange, RangeNode.class);

        Schema toPopulate = OASFactory.createObject(Schema.class);
        RangeNodeSchemaMapper.populateSchemaFromListOfRanges(toPopulate, ranges);
        assertEquals(expectedDates.get(0), toPopulate.getExtensions().get(DMNOASConstants.X_DMN_MINIMUM_VALUE));
        assertTrue(toPopulate.getExclusiveMinimum());
        assertEquals(expectedDates.get(1), toPopulate.getExtensions().get(DMNOASConstants.X_DMN_MAXIMUM_VALUE));
        assertFalse(toPopulate.getExclusiveMaximum());
    }