AttSpeechSynthesizer extends RestcommUntypedActor { private SpeechSynthesizerInfo info() { return new SpeechSynthesizerInfo(men.keySet()); } AttSpeechSynthesizer(final Configuration configuration); @Override void onReceive(final Object message);  }
@SuppressWarnings("unchecked") @Test public void testInfo() { new JavaTestKit(system) { { final ActorRef observer = getRef(); tts.tell(new GetSpeechSynthesizerInfo(), observer); final SpeechSynthesizerResponse<SpeechSynthesizerInfo> response = this.expectMsgClass( FiniteDuration.create(30, TimeUnit.SECONDS), SpeechSynthesizerResponse.class); assertTrue(response.succeeded()); final Set<String> languages = response.get().languages(); assertTrue(languages.contains("en")); assertTrue(languages.contains("en-uk")); assertTrue(languages.contains("es")); assertTrue(languages.contains("fr")); assertTrue(languages.contains("fr-ca")); assertTrue(languages.contains("de")); assertTrue(languages.contains("it")); assertTrue(languages.contains("pt-br")); } }; }