@Test
    void testQueryProfileSubstitution3() {
        QueryProfile profile = new QueryProfile("myProfile");
        profile.set("model.locale", "en-US", null);
        profile.set("myField", "Language: %{lang}, locale: %{locale}", null);
        Query q = new Query(QueryTestCase.httpEncode("/search?queryProfile=myProfile"), profile.compile(null));
        assertEquals("Language: ENGLISH, locale: en_US", q.properties().get("myField"));
    }
Select is special handled due to the strange idea to also use it to contain subproperties with JSON.
container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java