@Test
    void profiling_parameters_are_resolved() {
        var q = new Query("?query=foo&" +
                "trace.profiling.matching.depth=3&" +
                "trace.profiling.firstPhaseRanking.depth=5&" +
                "trace.profiling.secondPhaseRanking.depth=-7");
        assertEquals(0, q.getTrace().getProfileDepth());
        assertEquals(3, q.getTrace().getProfiling().getMatching().getDepth());
        assertEquals(5, q.getTrace().getProfiling().getFirstPhaseRanking().getDepth());
        assertEquals(-7, q.getTrace().getProfiling().getSecondPhaseRanking().getDepth());
    }
Test that we get the last value if a parameter is assigned multiple times
container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java