@Test
    void profile_depth_sets_default_profiling_parameters() {
        Query q = new Query("?query=foo&trace.profileDepth=2");
        assertEquals(2, q.getTrace().getProfileDepth());
        assertEquals(2, q.getTrace().getProfiling().getMatching().getDepth());
        assertEquals(2, q.getTrace().getProfiling().getFirstPhaseRanking().getDepth());
        assertEquals(2, 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