@Test
    public void testSettersAndIsAvailable() {
        try {
            translator.setId("foo");
            translator.setSecret("bar");
        } catch (Exception e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
        //reset
        translator = new MicrosoftTranslator();
        try {
            translator.setSecret("bar");
            translator.setId("foo");
        } catch (Exception e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
    }
Test cases for the {@link MicrosoftTranslator} class.
tika-translate/src/test/java/org/apache/tika/language/translate/impl/MicrosoftTranslatorTest.java