@Test
    void testUnembeddedTensorRankFeatureInRequest() {
        String text = "text to embed into a tensor";
        Tensor embedding1 = Tensor.from("tensor<float>(x[5]):[3,7,4,0,0]]");
        Tensor embedding2 = Tensor.from("tensor<float>(x[5]):[1,2,3,4,0]]");

        Map<String, Embedder> embedders = Map.of(
                "emb1", new MockEmbedder(text, Language.UNKNOWN, embedding1)
        );
        assertEmbedQuery("embed(" + text + ")", "query(myTensor4)", embedding1, embedders);
        assertEmbedQuery("embed('" + text + "')", "query(myTensor4)", embedding1, embedders);
        assertEmbedQuery("embed(\"" + text + "\")", "query(myTensor4)", embedding1, embedders);
        assertEmbedQuery("embed(emb1, '" + text + "')", "query(myTensor4)", embedding1, embedders);
        assertEmbedQuery("embed(emb1, \"" + text + "\")", "query(myTensor4)", embedding1, embedders);
        assertEmbedQueryFails("embed(emb2, \"" + text + "\")", "query(myTensor4)", embedding1, embedders,
                "Can't find embedder 'emb2'. Available embedder ids are 'emb1'.");

        embedders = Map.of(
                "emb1", new MockEmbedder(text, Language.UNKNOWN, embedding1),
                "emb2", new MockEmbedder(text, Language.UNKNOWN, embedding2)
        );
        assertEmbedQuery("embed(emb1, '" + text + "')", "query(myTensor4)",embedding1, embedders);
        assertEmbedQuery("embed(emb2, '" + text + "')", "query(myTensor4)",embedding2, embedders);
        assertEmbedQueryFails("embed(emb3, \"" + text + "\")", "query(myTensor4)", embedding1, embedders,
                "Can't find embedder 'emb3'. Available embedder ids are 'emb1', 'emb2'.");
        assertEmbedQueryFails("embed(emb3, text)", "query(myTensor4)", embedding1, embedders,
                              "Multiple embedders are provided but the string to embed is not quoted. " +
                              "Usage: embed(embedder-id, 'text'). Available embedder ids are 'emb1', 'emb2'.");

        // And with specified language
        embedders = Map.of(
                "emb1", new MockEmbedder(text, Language.ENGLISH, embedding1)
        );
        assertEmbedQuery("embed(" + text + ")", "query(myTensor4)", embedding1, embedders, Language.ENGLISH.languageCode());

        embedders = Map.of(
                "emb1", new MockEmbedder(text, Language.ENGLISH, embedding1),
                "emb2", new MockEmbedder(text, Language.UNKNOWN, embedding2)
        );
        assertEmbedQuery("embed(emb1, '" + text + "')", "query(myTensor4)", embedding1, embedders, Language.ENGLISH.languageCode());
        assertEmbedQuery("embed(emb2, '" + text + "')", "query(myTensor4)", embedding2, embedders, Language.UNKNOWN.languageCode());
    }
Tests queries towards rank profiles using input declarations.

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