/** @since 0.16 */ @Test public void testCallMethod() throws Exception { String id = callMethod(); if (id == null) { return; } PolyglotEngine.Value apply = findGlobalSymbol(id); TestObject obj = new TestObject(0); apply.execute(JavaInterop.asTruffleObject(obj)); Assert.assertEquals(obj.arg1, 41.0, 0.1); Assert.assertEquals(obj.arg2, 42.0, 0.1); }