@Test
public void testSimulation() {

	ExecutionContext executionContext = buildExecutionContext();
	executionContext.getExecutionParameters().setMode(ExecutionMode.SIMULATION);
	
	Function function = newFunction(FUNCTION_ID_SUCCESS);
	((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(ReportNodeStatus.PASSED, node.getStatus());
	Assert.assertEquals("{}", node.getOutput());
	Assert.assertNull(node.getError());
}