@Test
public void getConfidenceTest() {

    SpeechRecognitionEvent sRE = new SpeechRecognitionEvent("Message", 0.5f);
    assertEquals((double) 0.5f, (double) sRE.getConfidence(), (double) 0.001f,
            "SpeechRecognitionEvent.getConfidence() method failed");
}