private void assertEmbedQuery(String embed,
                                  String destination,
                                  Tensor expected,
                                  Map<String, Embedder> embedders,
                                  String language,
                                  String param1Value,
                                  CompiledQueryProfile queryProfile) {
        String languageParam = language == null ? "" : "&language=" + language;
        String param1 = param1Value == null ? "" : "&param1=" + urlEncode(param1Value);

        Query query = new Query.Builder().setRequest(HttpRequest.createTestRequest(
                                                 "?" + urlEncode("ranking.features." + destination) +
                                                 "=" + urlEncode(embed) +
                                                 "&ranking=commonProfile" +
                                                 languageParam +
                                                 param1,
                                                 com.yahoo.jdisc.http.HttpRequest.Method.GET))
                                         .setSchemaInfo(createSchemaInfo())
                                         .setQueryProfile(createQueryProfile())
                                         .setEmbedders(embedders)
                                         .setQueryProfile(queryProfile)
                                         .build();
        assertEquals(0, query.errors().size());
        assertEquals(expected, query.properties().get("ranking.features." + destination));
        assertEquals(expected, query.getRanking().getFeatures().getTensor(destination).get());
    }
Tests queries towards rank profiles using input declarations.

@author bratseth
container-search/src/test/java/com/yahoo/search/query/RankProfileInputTest.java