@Test
    void testSettingNativeQueryProfileValueInQueryProfile() {
        {
            QueryProfileRegistry registry = new QueryProfileRegistry();
            QueryProfile profile = new QueryProfile("default");
            profile.set("presentation.format.tensors", "short", Map.of(), registry);
            registry.register(profile);
            CompiledQueryProfileRegistry cRegistry = registry.compile();
            Query query = new Query("?query=foo", cRegistry.findQueryProfile("default"));
            assertTrue(query.getPresentation().getTensorShortForm());
        }

        {   // Same as above but also set presentation.format
            QueryProfileRegistry registry = new QueryProfileRegistry();
            QueryProfile profile = new QueryProfile("default");
            profile.set("presentation.format", "xml", Map.of(), registry);
            profile.set("presentation.format.tensors", "short", Map.of(), registry);
            registry.register(profile);
            CompiledQueryProfileRegistry cRegistry = registry.compile();
            Query query = new Query("?query=foo", cRegistry.findQueryProfile("default"));
            assertEquals("xml", query.getPresentation().getFormat());
            assertTrue(query.getPresentation().getTensorShortForm());
        }

        {   // Set presentation.format with a typed query profile type
            QueryProfileRegistry registry = new QueryProfileRegistry();
            QueryProfileType type = new QueryProfileType("mytype");
            type.inherited().add(registry.getType("native"));
            registry.getTypeRegistry().register(type);
            type.addField(new FieldDescription("ranking.features.query(embedding)", "tensor(x[5])"),
                    registry.getTypeRegistry());
            QueryProfile profile = new QueryProfile("default");
            profile.setType(type);
            registry.register(profile);
            CompiledQueryProfileRegistry cRegistry = registry.compile();
            Query query = new Query("?query=foo&presentation.format=xml", cRegistry.findQueryProfile("default"));
        }
    }
Tests that the value presentation.format.tensors can be set in a query profile.
This is special because 'presentation.format' is a native query profile.
container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java