@Test
public void testIsAnyApplicationSpeaking() throws InterruptedException {

    NSSpeechSynthesizer ss = NSSpeechSynthesizer.synthesizerWithVoice(null);
    SynthesizerDelegate sd = new SynthesizerDelegate(ss);
    ss.setDelegate(sd);
    assertTrue(!NSSpeechSynthesizer.isAnyApplicationSpeaking());
    ss.startSpeakingString("Hello world");
    assertTrue(NSSpeechSynthesizer.isAnyApplicationSpeaking());
    sd.waitForSpeechDone(TIME_TO_WAIT, true);
}