public String translate(String text, String targetLanguage) throws TikaException, IOException {
        String sourceLanguage = detectLanguage(text).getLanguage();
        return translate(text, sourceLanguage, targetLanguage);
    }
@Test
    public void testNoConfig() throws Exception {
        String source = "Apache Tika is a wonderful tool";
        String expected =
                "Apache Tika is a wonderful tool"; // Pattern from other Translators is to return source
        String translated = translator.translate(source, "en", "zz");
        assertTrue(expected.equalsIgnoreCase(translated),
                "Translate " + source + " to " + expected + " (was " + translated + ")");
    }