@Test
public void testWaitQueueEmpty() throws JVoiceXMLEvent, Exception {

    final SsmlDocument ssml = new SsmlDocument();
    final Speak speak = ssml.getSpeak();
    speak.addText("this is a test");
    final SpeakableText speakable1 = new SpeakableSsmlText(ssml);
    output.queueSpeakable(speakable1, sessionId, documentServer);
    output.waitQueueEmpty();
    Assert.assertFalse("output should be busy", output.isBusy());
}