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

    final SystemOutput output = platform.getSystemOutput();
    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);
    output.queueSpeakable(text1, null, null);
    output.queueSpeakable(text2, null, null);
    output.queueSpeakable(text3, null, null);
    platform.waitNonBargeInPlayed();
}