@Test
    void testUnembeddedTensorRankFeatureInRequestReferencedFromAParameterSuppliedByQueryProfile() {
        String text = "text to embed into a tensor";

        var registry = new QueryProfileRegistry();
        var profile = new QueryProfile("test");
        profile.set("param2", "text to %{param1}", registry);
        registry.register(profile);
        var cProfile = registry.compile().findQueryProfile("test");

        Tensor embedding1 = Tensor.from("tensor<float>(x[5]):[3,7,4,0,0]]");

        Map<String, Embedder> embedders = Map.of(
                "emb1", new MockEmbedder(text, Language.UNKNOWN, embedding1)
                                                );
        assertEmbedQuery("embed(@param2)", "query(myTensor4)", embedding1, embedders, null, "embed into a tensor", cProfile);
        assertEmbedQuery("embed(emb1, @param2)", "query(myTensor4)", embedding1, embedders, null, "embed into a tensor", cProfile);
        assertEmbedQueryFails("embed(emb1, @noSuchParam)", "query(myTensor4)", embedding1, embedders,
                              "Could not resolve query parameter reference 'noSuchParam' " +
                              "used in an embed() argument");
    }
Tests queries towards rank profiles using input declarations.

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