@Test
    void testUntypedNestedUnoverridable() {
        QueryProfileRegistry registry = new QueryProfileRegistry();
        QueryProfile topMap = new QueryProfile("topMap");
        registry.register(topMap);

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

        QueryProfile test = new QueryProfile("test");
        test.setType(type);
        subMap.set("test", test, registry);
        registry.register(test);

        QueryProfile myUser = new QueryProfile("user");
        myUser.setType(user);
        myUser.set("myUserString", "finalValue", registry);
        test.set("myUserQueryProfile", myUser, registry);
        registry.register(myUser);

        registry.freeze();
        Query query = new Query(HttpRequest.createTestRequest("?subMap.test.myUserQueryProfile.myUserString=newValue", Method.GET), registry.compile().getComponent("topMap"));
        assertEquals(0, query.errors().size());
        assertEquals("finalValue", query.properties().get("subMap.test.myUserQueryProfile.myUserString"));

        query.properties().set("subMap.test.myUserQueryProfile.myUserString", "newValue");
        assertEquals("finalValue", query.properties().get("subMap.test.myUserQueryProfile.myUserString"));
    }
Check that non-overridables are protected also in nested untyped references
container-search/src/test/java/com/yahoo/search/query/profile/types/test/OverrideTestCase.java