@Test
    public void testMax1() {
        var schema = """
                {
                    "type": "integer",
                    "maximum": 1
                }
                """;
        var expectedGrammar = """
                root ::= ("-" [1-9] [0-9]{0,15} | [0-1]) space
                space ::= | " " | "\\n" [ \\t]{0,20}
                """;

        var actualGrammar = JsonSchemaToGrammar.convert(schema);
        assertEquals(expectedGrammar, actualGrammar);
    }
These tests are based on C++ unit tests from llama.cpp repository.
model-integration/src/test/java/ai/vespa/llm/clients/JsonSchemaToGrammarTest.java