@Test
        public void shouldTranslateForJavascript() {
            try {
                final String translatedQuery = GremlinTranslator.translate(query, "g", Translator.JAVASCRIPT).getTranslated();
                assertEquals(expectedForJavascript, translatedQuery);
            } catch (TranslatorException e) {
                assertThat(e.getMessage(), startsWith(expectedForJavascript));
            }
        }
Test data where first element is the Gremlin query to translate and the following elements are the expected
translations for each language.
<ol>
    <li>Language</li>
    <li>Anonymized</li>
    <li>.NET</li>
    <li>Go</li>
    <li>Groovy</li>
    <li>Java</li>
    <li>Javascript</li>
    <li>Python</li>
</ol>
If the translation is expected end in error then just set the value to the expected error message.
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/language/translator/GremlinTranslatorTest.java