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

    final KinectSpokenInput input = new KinectSpokenInput();
    final MockSpokenInputListener listener = new MockSpokenInputListener();
    input.addListener(listener);
    input.open();
    input.activate();
    input.startRecognition(null, null, null);
    listener.waitSize(1, 10000);
    final SpokenInputEvent event1 = listener.get(0);
    Assert.assertEquals(RecognitionEvent.EVENT_TYPE, event1.getEventType());
    LOGGER.info("Say nothing");
    Thread.sleep(5000);
    input.stopRecognition();
    Assert.assertFalse(input.isBusy());
    input.passivate();
}