@Test
    void testDisallowSortingOnTensors() {
        try {
            quoteAndTransform("aTensor");
            fail("Expected exception");
        }
        catch (IllegalArgumentException e) {
            assertEquals("Cannot sort on field 'aTensor' because it is a tensor", e.getMessage());
        }
    }
Check sorting validation behaves OK.

@author Steinar Knutsen
container-search/src/test/java/com/yahoo/prelude/searcher/test/ValidateSortingSearcherTestCase.java