final MockFunction mockFunction = getMockLoggingFunction();
final ThreadLocalLogEventListener logEventListener = new ThreadLocalLogEventListener();
final TestCalculationNode calcNode = new TestCalculationNode(logEventListener);
CalculationNodeUtils.configureTestCalcNode(calcNode, mockFunction);
final CalculationJob calcJob = CalculationNodeUtils.getCalculationJob(mockFunction, ExecutionLogMode.INDICATORS);
final CalculationJobResultItem resultItemLogIndicators = getResultWithLogging(mockFunction, logEventListener, calcNode, calcJob);
final ExecutionLog executionLog = resultItemLogIndicators.getExecutionLog();
assertNotNull(executionLog);
assertTrue(executionLog.getLogLevels().contains(LogLevel.WARN));
assertFalse(executionLog.getLogLevels().contains(LogLevel.ERROR));
assertFalse(executionLog.getLogLevels().contains(LogLevel.INFO));