@Test
    void testEscaping() {
        QueryProfile profile = new QueryProfile("test");
        var q = """
        select * from sources * where
        (
            rank(
                {grammar:"tokenize"}userInput(@query),
                {grammar:"tokenize",defaultIndex:'url_text'}userInput(@query)
            )
        )
        """;
        profile.set("yql", q, null);

        String userQuery = "(from -r requirements.txt (line 11)) ";
        var request = HttpRequest.createTestRequest("", Method.GET, null, Map.of("query", userQuery));
        var query = new Query(request, profile.compile(null));
        var searcher = new MinimalQueryInserter();
        var execution = new Execution(searcher, Execution.Context.createContextStub());
        var result = execution.search(query);
        assertNull(result.hits().getError());
    }
Dots are followed when setting overridability
container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileTestCase.java