public Object call() throws Exception { FunctionStats functionStats = FunctionStats .getFunctionStats("TestFunctionException", getSystem()); noOfExecutionCalls_TestFunctionException++; noOfExecutionExceptions_TestFunctionException++; assertEquals(noOfExecutionCalls_TestFunctionException, functionStats .getFunctionExecutionCalls()); assertEquals(noOfExecutionsCompleted_TestFunctionException, functionStats.getFunctionExecutionsCompleted()); assertEquals(noOfExecutionExceptions_TestFunctionException, functionStats.getFunctionExecutionExceptions()); noOfExecutionCalls_Aggregate++; noOfExecutionExceptions_Aggregate++; FunctionServiceStats functionServiceStats = ((InternalDistributedSystem)getCache() .getDistributedSystem()).getFunctionServiceStats(); assertEquals(noOfExecutionCalls_Aggregate, functionServiceStats .getFunctionExecutionCalls()); assertEquals(noOfExecutionsCompleted_Aggregate, functionServiceStats .getFunctionExecutionsCompleted()); assertEquals(noOfExecutionExceptions_Aggregate, functionServiceStats .getFunctionExecutionExceptions()); return Boolean.TRUE; } };