@Test
public void setFormItemVariableRecognitionResult() throws JVoiceXMLEvent {

    final RecognitionResult result = Mockito.mock(RecognitionResult.class);
    Mockito.when(result.getUtterance()).thenReturn("hans");
    Mockito.when(result.isAccepted()).thenReturn(true);
    Mockito.when(result.getMode()).thenReturn(ModeType.VOICE);
    final DataModel model = Mockito.mock(DataModel.class);
    Mockito.when(model.readVariable(item.getName(), Object.class))
            .thenReturn("hans");
    Mockito.when(context.getDataModel()).thenReturn(model);
    item.setFormItemVariable(result);
    Assert.assertEquals(result.getUtterance(), item.getFormItemVariable());
}