@Test
public void testError() {

	ExecutionContext executionContext = buildExecutionContext();
	
	Function function = newFunction(FUNCTION_ID_ERROR);
	
	((InMemoryFunctionAccessorImpl)executionContext.get(FunctionAccessor.class)).save(function);
	
	CallFunctionHandler handler = new CallFunctionHandler();
	handler.init(executionContext);
	
	CallFunction callFunction = new CallFunction();
	callFunction.setFunctionId(function.getId().toString());
	
	CallFunctionReportNode node = (CallFunctionReportNode) execute(callFunction);
	
	Assert.assertEquals("My Error", node.getError().getMsg());
}