@Test
public void setFormItemVariableRecognitionResultSemanticInterpretation()
        throws JVoiceXMLEvent {

    final DataModel model = Mockito.mock(DataModel.class);
    final RecognitionResult result = Mockito.mock(RecognitionResult.class);
    Mockito.when(result.getUtterance()).thenReturn("yeah");
    Mockito.when(result.getSemanticInterpretation(model)).thenReturn("yes");
    Mockito.when(result.isAccepted()).thenReturn(true);
    Mockito.when(result.getMode()).thenReturn(ModeType.VOICE);
    Mockito.when(context.getDataModel()).thenReturn(model);
    item.setFormItemVariable(result);
    Mockito.verify(model).updateVariable(item.getName(), "yes");
}