protected void setExecutor(Executor executor) {
    this.executor = executor;
  }
This protected method provides a way for unit-tests to insert a
mock executor for simpler unit-testing.

@param executor an Executor instance
ambari-server/src/main/java/org/apache/ambari/server/controller/logging/LogSearchDataRetrievalService.java