@Test
    void testSimpleUnoverridable() {
        QueryProfileRegistry registry = new QueryProfileRegistry();
        QueryProfile test = new QueryProfile("test");
        test.setType(type);
        test.set("myString", "finalString", (QueryProfileRegistry) null);
        registry.register(test);
        registry.freeze();

        // Assert request assignment does not work
        Query query = new Query(HttpRequest.createTestRequest("?myString=newValue", Method.GET), registry.compile().getComponent("test"));
        assertEquals(0, query.errors().size());
        assertEquals("finalString", query.properties().get("myString"));

        // Assert direct assignment does not work
        query.properties().set("myString", "newValue");
        assertEquals("finalString", query.properties().get("myString"));
    }
Check that a simple non-overridable string cannot be overridden
container-search/src/test/java/com/yahoo/search/query/profile/types/test/OverrideTestCase.java