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

    final TextSpokenInput textInput = new TextSpokenInput();
    textInput.startRecognition(null, null, null);
    textInput.addListener(this);
    final String utterance = "testRecord";
    mockGrammarChecker(textInput, utterance);
    telephony.record(textInput, null);
    Assert.assertTrue(telephony.isBusy());
    server.sendInput(utterance);
    synchronized (lock) {
        lock.wait(MAX_WAIT);
    }
    Assert.assertNotNull(receivedResult);
    // equals should be already done in mocked grammar
    // Assert.assertEquals(utterance, receivedResult.getUtterance());
}