@Test
    public void test1EN_ES_Translation() {
        assumeTrue(translator.isAvailable());
        String inputText = "Hello World!!!";
        String expectedText = "Hola Mundo!!!";
        try {
            String transText = translator.translate(inputText, "en", "es");
            assertNotNull(transText, "Text not translated");
            assertEquals(expectedText, transText);
        } catch (TikaException | IOException e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
    }
Generic Tests to ensure that the RSS library behaves as expected

@author mark
tika-translate/src/test/java/org/apache/tika/language/translate/impl/YandexTranslatorTest.java