@Test
    void testInheritedNonOverridableInType() {
        QueryProfileRegistry registry = new QueryProfileRegistry();

        QueryProfile test = new QueryProfile("test");
        test.setType(type);
        test.set("myString", "finalString", (QueryProfileRegistry) null);
        registry.register(test);

        QueryProfile profile = new QueryProfile("profile");
        profile.addInherited(test);
        registry.register(profile);

        registry.freeze();

        Query query = new Query(HttpRequest.createTestRequest("?myString=newString", Method.GET), registry.compile().getComponent("test"));

        assertEquals(0, query.errors().size());
        assertEquals("finalString", query.properties().get("myString"));

        query.properties().set("myString", "newString");
        assertEquals("finalString", query.properties().get("myString"));
    }
Tests overridability in an inherited field
container-search/src/test/java/com/yahoo/search/query/profile/types/test/OverrideTestCase.java