@Test
public void testSendDataMultiple() throws Exception {

    final int max = 100;
    for (int i = 0; i < max; i++) {
        final String test = "test " + i;
        final SpeakableText speakable = new SpeakableSsmlText(test,
                Locale.US);
        sender.sendData(speakable);
    }
    int i = 0;
    while (i < max) {
        synchronized (lock) {
            lock.wait(MAX_WAIT);
        }
        ++i;
    }
    Assert.assertEquals(max, i);
}