@Test
public void testGetWordsConfidence() throws Exception {

    final SmlInterpretationExtractor extractor = readSml("sml-simple.xml");
    final KinectRecognitionResult result =
            new KinectRecognitionResult(extractor);
    final float[] confidences = result.getWordsConfidence();
    Assert.assertEquals(2, confidences.length);
    for (int i=0; i < confidences.length; i++) {
        Assert.assertEquals(0.5100203, confidences[i],
                MAX_CONFIDENCE_DIFF);
    }
}