@Test
    void testTypedSettingOfQueryProfileReferencesNonStrictThroughQueryNestedInAnUntypedProfile() {
        QueryProfile topMap = new QueryProfile("topMap");

        QueryProfile subMap = new QueryProfile("topSubMap");
        topMap.set("subMap", subMap, registry);

        QueryProfile test = new QueryProfile("test");
        test.setType(testtype);
        subMap.set("typeProfile", test, registry);

        QueryProfile newUser = new QueryProfile("newUser");
        newUser.setType(user);
        newUser.set("myUserString", "newUserValue1", registry);
        newUser.set("myUserInteger", 845, registry);

        registry.register(topMap);
        registry.register(subMap);
        registry.register(test);
        registry.register(newUser);
        CompiledQueryProfileRegistry cRegistry = registry.compile();

        Query query = new Query(HttpRequest.createTestRequest("?subMap.typeProfile.myUserQueryProfile=newUser",
                        com.yahoo.jdisc.http.HttpRequest.Method.GET),
                cRegistry.getComponent("topMap"));
        assertEquals(0, query.errors().size());

        assertEquals("newUserValue1", query.properties().get("subMap.typeProfile.myUserQueryProfile.myUserString"));
        assertEquals(845, query.properties().get("subMap.typeProfile.myUserQueryProfile.myUserInteger"));
    }
Tests overriding a subprofile as an id string through the query.
Here, no user profile is set before it is assigned in the query
The whole thing is accessed through a two levels of nontyped top-level profiles
container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java