@Test
public void testSendData() throws Exception {

    final String test1 = "test1";
    final SpeakableSsmlText speakable1 = new SpeakableSsmlText(test1,
            Locale.US);
    sender.sendData(speakable1);
    synchronized (lock) {
        lock.wait(MAX_WAIT);
    }
    assertEquals(speakable1.getDocument(), receivedObject);
}