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

    final SsmlDocument ssml1 = new SsmlDocument();
    final Speak speak1 = ssml1.getSpeak();
    speak1.addText("this is a test");
    final SpeakableText speakable1 =
            new SpeakableSsmlText(ssml1);
    accumulator.queuePrompt(speakable1);
    final SsmlDocument ssml2 = new SsmlDocument();
    final Speak speak2 = ssml2.getSpeak();
    speak2.addText("this is another test");
    final SpeakableSsmlText speakable2 = new SpeakableSsmlText(ssml2);
    final long timeout = 40;
    speakable2.setTimeout(timeout);
    accumulator.queuePrompt(speakable2);
    final CallControlProperties props = new CallControlProperties();
    accumulator.renderPrompts(null, null, props);
    Assert.assertEquals(timeout, accumulator.getPromptTimeout());
}