SpeechRecognitionEvent implements STTEvent { public float getConfidence() { return this.confidence; } SpeechRecognitionEvent(String transcript, float confidence); String getTranscript(); float getConfidence();  }
@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"); }