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

    final SsmlDocument doc1 = new SsmlDocument();
    final Speak speak1 = doc1.getSpeak();
    speak1.addText("Test1");
    final SpeakableText text1 = new SpeakableSsmlText(doc1, true,
            BargeInType.HOTWORD);
    ;
    final SsmlDocument doc2 = new SsmlDocument();
    final Speak speak2 = doc2.getSpeak();
    speak2.addText("Test2");
    final SpeakableText text2 = new SpeakableSsmlText(doc2, true,
            BargeInType.SPEECH);
    final SsmlDocument doc3 = new SsmlDocument();
    final Speak speak3 = doc3.getSpeak();
    speak3.addText("Test3");
    final SpeakableText text3 = new SpeakableSsmlText(doc3);
    synthesizer.queueSpeakable(text1, sessionId, documentServer);
    synthesizer.queueSpeakable(text2, sessionId, documentServer);
    synthesizer.queueSpeakable(text3, sessionId, documentServer);
    synthesizer.waitNonBargeInPlayed();
}