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

    final KinectSpokenInput input = new KinectSpokenInput();
    final MockSpokenInputListener listener = new MockSpokenInputListener();
    input.addListener(listener);
    input.open();
    input.activate();
    input.startRecognition(null, null, null);
    Assert.assertTrue(input.isBusy());
    listener.waitSize(1, 10000);
    final SpokenInputEvent event1 = listener.get(0);
    Assert.assertEquals(RecognitionStartedEvent.EVENT_TYPE,
            event1.getEventType());
    LOGGER.info("Say something!");
    listener.waitSize(2, 10000);
    final SpokenInputEvent event2 = listener.get(1);
    Assert.assertEquals(RecognitionEvent.EVENT_TYPE, event2.getEventType());
    input.passivate();
}