@Test
    void testInstanceOverridableWithVariants() {
        QueryProfile profile = new QueryProfile("root/unoverridableIndex");
        profile.setDimensions(new String[]{"x"});
        profile.set("model.defaultIndex", "default", null);
        profile.setOverridable("model.defaultIndex", false, DimensionValues.empty);

        assertFalse(profile.isDeclaredOverridable("model.defaultIndex", null));

        // Parameters should be ignored
        Query query = new Query(HttpRequest.createTestRequest("?x=x1&model.defaultIndex=title", Method.GET), profile.compile(null));
        assertEquals("default", query.getModel().getDefaultIndex());

        // Parameters should be ignored
        query = new Query(HttpRequest.createTestRequest("?x=x1&model.default-index=title&model.language=de", Method.GET), profile.compile(null));
        assertEquals("default", query.getModel().getDefaultIndex());
        assertEquals("de", query.getModel().getLanguage().languageCode());
    }
Dots are followed when setting overridability, also with variants
container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileTestCase.java