@Test
    void testTypedOverridingOfQueryProfileReferencesNonStrictThroughQuery() {
        QueryProfile profile = new QueryProfile("test");
        profile.setType(testtype);

        QueryProfile myUser = new QueryProfile("myUser");
        myUser.setType(user);
        myUser.set("myUserString", "userValue1", registry);
        myUser.set("myUserInteger", 442, registry);

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

        QueryProfileRegistry registry = new QueryProfileRegistry();
        registry.register(profile);
        registry.register(myUser);
        registry.register(newUser);
        CompiledQueryProfileRegistry cRegistry = registry.compile();
        CompiledQueryProfile cprofile = cRegistry.getComponent("test");

        Query query = new Query(HttpRequest.createTestRequest("?myUserQueryProfile=newUser",
                        com.yahoo.jdisc.http.HttpRequest.Method.GET),
                cprofile);

        assertEquals(0, query.errors().size());

        assertEquals("newUserValue1", query.properties().get("myUserQueryProfile.myUserString"));
        assertEquals(845, query.properties().get("myUserQueryProfile.myUserInteger"));
    }
Tests overriding a subprofile as an id string through the query.
Here there exists a user profile already, and then a new one is overwritten
container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java