@Test
public void evaluateApplyJavaFunction(){

	FieldName name = FieldName.create("x");
	FieldRef fieldRef = new FieldRef(name);
	Apply apply = new Apply(EchoFunction.class.getName())
		.addExpressions(fieldRef);
	try {
		evaluate(apply);
		fail();
	} catch(EvaluationException ee){
		assertEquals(fieldRef, ee.getContext());
	}
	assertEquals("Hello World!", evaluate(apply, name, "Hello World!"));
}