AcapelaSpeechSynthesizer extends RestcommUntypedActor { private SpeechSynthesizerInfo info() { return new SpeechSynthesizerInfo(women.keySet()); } AcapelaSpeechSynthesizer(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("ca")); assertTrue(languages.contains("it")); assertTrue(languages.contains("tr")); assertTrue(languages.contains("no")); assertTrue(languages.contains("ar")); assertTrue(languages.contains("cs")); assertTrue(languages.contains("de")); assertTrue(languages.contains("bp")); assertTrue(languages.contains("el")); assertTrue(languages.contains("dan")); assertTrue(languages.contains("fi")); assertTrue(languages.contains("pt")); assertTrue(languages.contains("pl")); assertTrue(languages.contains("bf")); assertTrue(languages.contains("sv")); assertTrue(languages.contains("fr")); assertTrue(languages.contains("en")); assertTrue(languages.contains("ru")); assertTrue(languages.contains("es")); assertTrue(languages.contains("cf")); assertTrue(languages.contains("nl")); assertTrue(languages.contains("en-gb")); System.out.println(response.get().languages()); } }; }