@Test
public void testConvertApplicationLastResultSimpleSemanticInterpretation()
        throws Exception {

    final JsonExtensionNotificationDataConverter converter = new JsonExtensionNotificationDataConverter();
    final List<LastResult> list = new java.util.ArrayList<LastResult>();
    final Context context = Context.enter();
    context.setLanguageVersion(Context.VERSION_1_6);
    final Scriptable scope = context.initStandardObjects();
    context.evaluateString(scope, "var out = 'yes';", "expr", 1, null);
    final Object out = scope.get("out", scope);
    final LastResult result = new LastResult("yeah", .75f, "voice", out);
    list.add(result);
    final String json = (String) converter
            .convertApplicationLastResult(list);
    Assert.assertEquals("vxml.input = {\"utterance\":\"yeah\","
            + "\"confidence\":0.75,\"interpretation\":\"yes\","
            + "\"mode\":\"voice\"}", json);
}