static void populateSchemaWithConstraints(Schema toPopulate, SimpleTypeImpl t) {
        if (t.getAllowedValues() != null && !t.getAllowedValues().isEmpty()) {
            parseSimpleType(DMNOASConstants.X_DMN_ALLOWED_VALUES, toPopulate, t.getAllowedValuesFEEL(), t.getAllowedValues());
        }
        if (t.getTypeConstraint() != null && !t.getTypeConstraint().isEmpty()) {
            parseSimpleType(DMNOASConstants.X_DMN_TYPE_CONSTRAINTS, toPopulate, t.getTypeConstraintFEEL(), t.getTypeConstraint());
        }
    }
@Test
    void populateSchemaWithRangesForTypeConstraints() {
        List<Object> toRange = Arrays.asList("(>1)", "(<=10)");
        String typeConstraintsString = String.join(",",
                                                   toRange.stream().map(toMap -> String.format("%s", toMap)).toList());
        SimpleTypeImpl toRead = getSimpleType(null, typeConstraintsString, FEEL_STRING, BuiltInType.STRING);
        AtomicReference<Schema> toPopulate = new AtomicReference<>(getSchemaForSimpleType(toRead));
        DMNTypeSchemas.populateSchemaWithConstraints(toPopulate.get(), toRead);
        assertEquals(BigDecimal.ONE, toPopulate.get().getMinimum());
        assertTrue(toPopulate.get().getExclusiveMinimum());
        assertEquals(BigDecimal.TEN, toPopulate.get().getMaximum());
        assertFalse(toPopulate.get().getExclusiveMaximum());
        assertTrue(toPopulate.get().getExtensions().containsKey(DMNOASConstants.X_DMN_TYPE_CONSTRAINTS));
        String retrieved =
                ((String) toPopulate.get().getExtensions().get(DMNOASConstants.X_DMN_TYPE_CONSTRAINTS)).replace(" ",
                                                                                                                "");
        String expected = typeConstraintsString.replace("(", "").replace(")", "");
        assertEquals(expected, retrieved);
    }