@Test
    void testTensorRankFeatureInRequest() {
        QueryProfile profile = new QueryProfile("test");
        profile.setType(testtype);
        registry.register(profile);

        CompiledQueryProfileRegistry cRegistry = registry.compile();
        String tensorString = "{{a:a1, b:b1}:1.0, {a:a2, b:b1}:2.0}";
        Query query = new Query(HttpRequest.createTestRequest("?" + urlEncode("ranking.features.query(myTensor1)") +
                        "=" + urlEncode(tensorString),
                        com.yahoo.jdisc.http.HttpRequest.Method.GET),
                cRegistry.getComponent("test"));
        assertEquals(0, query.errors().size());
        assertEquals(Tensor.from(tensorString), query.properties().get("ranking.features.query(myTensor1)"));
        assertEquals(Tensor.from(tensorString), query.getRanking().getFeatures().getTensor("query(myTensor1)").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
container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java