public void checkSortSpecUcaUSOptional(String spec) {
        Query q = newQuery(spec);
        assertNotNull(q.getRanking().getSorting());
        List<Sorting.FieldOrder> sortSpec = q.getRanking().getSorting().fieldOrders();
        assertEquals(sortSpec.size(), 1);
        assertEquals(Sorting.Order.DESCENDING,
                     sortSpec.get(0).getSortOrder());
        assertTrue(sortSpec.get(0).getSorter() instanceof Sorting.UcaSorter);
        assertEquals(((Sorting.UcaSorter)sortSpec.get(0).getSorter()).getLocale(), "en_US" );
        assertEquals(((Sorting.UcaSorter)sortSpec.get(0).getSorter()).getStrength(), Sorting.UcaSorter.Strength.TERTIARY );
        assertEquals("name", sortSpec.get(0).getFieldName());
    }
Test that the integer convenience wrapper works as documented,
throwing NumberFormatException when applied to something that
is not a number.
container-search/src/test/java/com/yahoo/prelude/test/QueryTestCase.java