EntryPointSpec addSpec = EntryPointSpec.make(QualifiedName.make(CAL_Prelude.MODULE_NAME, "add"), new InputPolicy[] {
InputPolicy.INT_INPUT_POLICY,
InputPolicy.DEFAULT_INPUT_POLICY
}, OutputPolicy.DEFAULT_OUTPUT_POLICY);
EntryPoint add = compiler.getEntryPoint(addSpec, CAL_Prelude.MODULE_NAME, messageLogger);
assertNotNull(add);
Object addResult = executor.exec(add, new Object[] { new Integer(1), new Integer(2) });
assertTrue(addResult instanceof Integer);
assertEquals(new Integer(1 + 2), addResult);
}