@BeforeEach
    public void setUp() {
        type=new QueryProfileType(new ComponentId("testtype"));
        user=new QueryProfileType(new ComponentId("user"));
        registry=new QueryProfileTypeRegistry();
        registry.register(type);
        registry.register(user);

        addTypeFields(type);
        addUserFields(user);
    }
Tests overriding of field values

@author bratseth
container-search/src/test/java/com/yahoo/search/query/profile/types/test/OverrideTestCase.java