public void testCancel() throws Exception {
final ViewDefinition viewDefinition = new ViewDefinition("Test", "jonathan");
final ViewCalculationConfiguration calcConfig = new ViewCalculationConfiguration(viewDefinition, "Config1");
viewDefinition.addViewCalculationConfiguration(calcConfig);
final FunctionRepository functionRepo = new InMemoryFunctionRepository();
final FunctionCompilationContext compilationContext = new FunctionCompilationContext();
final CompiledFunctionService cfs = new CompiledFunctionService(functionRepo, new CachingFunctionRepositoryCompiler(), compilationContext);
cfs.initialize();
final DefaultFunctionResolver functionResolver = new DefaultFunctionResolver(cfs);
final SecuritySource securitySource = new InMemorySecuritySource();