private void assertEmbedQuery(String embed, Tensor expected, Map<String, Embedder> embedders, String language) {
        QueryProfile profile = new QueryProfile("test");
        profile.setType(testtype);
        registry.register(profile);
        CompiledQueryProfileRegistry cRegistry = registry.compile();

        String languageParam = language == null ? "" : "&language=" + language;
        String destination = "query(myTensor4)";

        Query query = new Query.Builder().setRequest(HttpRequest.createTestRequest(
                                "?" + urlEncode("ranking.features." + destination) +
                                "=" + urlEncode(embed) +
                                languageParam,
                                com.yahoo.jdisc.http.HttpRequest.Method.GET))
                .setQueryProfile(cRegistry.getComponent("test"))
                .setEmbedders(embedders)
                .build();
        assertEquals(0, query.errors().size());
        assertEquals(expected, query.properties().get("ranking.features." + destination));
        assertEquals(expected, query.getRanking().getFeatures().getTensor(destination).get());
    }
Tests overriding a subprofile as an id string through the query.
Here, no user profile is set before it is assigned in the query
The whole thing is accessed through a two levels of nontyped top-level profiles
container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java