@Test(expected = NomatchEvent.class)
public void testHandleEventNotHandledBelowConfidence() throws Exception,
        JVoiceXMLEvent {

    final VoiceXmlDocument document = new VoiceXmlDocument();
    final Vxml vxml = document.getVxml();
    final Form form = vxml.appendChild(Form.class);
    final Field field = form.appendChild(Field.class);
    field.setName("field");
    final RecognitionResult result = Mockito.mock(RecognitionResult.class);
    Mockito.when(result.getUtterance()).thenReturn("hello world");
    Mockito.when(result.isAccepted()).thenReturn(true);
    Mockito.when(result.getConfidence()).thenReturn(0.55f);
    Mockito.when(result.getMode()).thenReturn(ModeType.VOICE);
    Mockito.when(context.getProperty("confidencelevel", "0.5")).thenReturn(
            "0.6");
    final FieldFormItem formItem = new FieldFormItem(context, field);
    final InputItemRecognitionEventStrategy strategy = new InputItemRecognitionEventStrategy(
            context, interpreter, null, formItem);
    final JVoiceXMLEvent event = new RecognitionEvent(null, null, result);
    strategy.handleEvent(formItem, event);
}