private void assertEmbedQueryFails(String embed, Tensor expected, Map<String, Embedder> embedders, String errMsg) {
        Throwable t = assertThrows(IllegalArgumentException.class, () -> assertEmbedQuery(embed, expected, embedders));
        while (t != null) {
            if (t.getMessage().equals(errMsg)) return;
            t = t.getCause();
        }
        fail("Error '" + errMsg + "' not thrown");
    }
Tests overriding a subprofile as an id string through the query.
Here, no user profile is set before it is assigned in the query
The whole thing is accessed through a two levels of nontyped top-level profiles
container-search/src/test/java/com/yahoo/search/query/profile/types/test/QueryProfileTypeTestCase.java