@Test
    void testLanguagesInQueryParameter() {
        // Right parameter is the parameter given in the query, as language=
        // Left parameter is the language sent to linguistics

        // Ancient
        assertLanguage(Language.CHINESE_SIMPLIFIED, "zh-cn");
        assertLanguage(Language.CHINESE_SIMPLIFIED, "zh-Hans");
        assertLanguage(Language.CHINESE_SIMPLIFIED, "zh-hans");
        assertLanguage(Language.CHINESE_TRADITIONAL, "zh-tw");
        assertLanguage(Language.CHINESE_TRADITIONAL, "zh-Hant");
        assertLanguage(Language.CHINESE_TRADITIONAL, "zh-hant");
        assertLanguage(Language.CHINESE_TRADITIONAL, "zh");
        assertLanguage(Language.ENGLISH, "en");
        assertLanguage(Language.GERMAN, "de");
        assertLanguage(Language.JAPANESE, "ja");
        assertLanguage(Language.fromLanguageTag("jp"), "jp");
        assertLanguage(Language.KOREAN, "ko");

        // Since 2.0
        assertLanguage(Language.FRENCH, "fr");
        assertLanguage(Language.SPANISH, "es");
        assertLanguage(Language.ITALIAN, "it");
        assertLanguage(Language.PORTUGUESE, "pt");

        //Since 2.2
        assertLanguage(Language.THAI, "th");
    }
<p>Tests that the correct query language strings are generated for various
query trees.</p>

<p>The opposite direction is tested by
{@link com.yahoo.prelude.query.parser.test.ParseTestCase}.
Note that the query language statements produced by a query tree is a
subset of the statements accepted by the parser.</p>

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