}
private EHCacheViewExecutionCache createCache() {
final ConfigSource configSource = Mockito.mock(ConfigSource.class);
Mockito.when(configSource.getConfig(ViewDefinition.class, UniqueId.of("View", "0", "V"))).thenReturn(createViewDefinition());
final CompiledFunctionService functions = new CompiledFunctionService(createFunctionRepository(), new LazyFunctionRepositoryCompiler(), createFunctionCompilationContext());
functions.initialize();
return new EHCacheViewExecutionCache(_cacheManager, configSource, functions);
}