@Override
 public void setUp() throws Exception {
   super.setUp();
   Settings settings =
       Settings.builder()
           .put(Environment.PATH_HOME_SETTING.getKey(), createTempDir().toString())
           .build();
   registry =
       new AnalysisRegistry(
           new Environment(settings), emptyMap(), emptyMap(), emptyMap(), emptyMap(), emptyMap());
 }
 @Override
 @Before
 public void setUp() throws Exception {
   super.setUp();
   this.transport = new MockTransport();
   transportService =
       new TransportService(
           Settings.EMPTY,
           transport,
           THREAD_POOL,
           TransportService.NOOP_TRANSPORT_INTERCEPTOR,
           null);
   transportService.start();
   transportService.acceptIncomingRequests();
 }
  @Before
  @Override
  public void setUp() throws Exception {
    super.setUp();
    threadPool =
        new TestThreadPool(getTestName()) {
          @Override
          public Executor executor(String name) {
            return Runnable::run;
          }

          @Override
          public ScheduledFuture<?> schedule(TimeValue delay, String name, Runnable command) {
            command.run();
            return null;
          }
        };
    retries = 0;
    searchRequest = new SearchRequest();
    searchRequest.scroll(timeValueMinutes(5));
    searchRequest.source(new SearchSourceBuilder().size(10).version(true).sort("_doc").size(123));
    retriesAllowed = 0;
  }
 @Override
 @Before
 public void setUp() throws Exception {
   super.setUp();
   threadPool = new TestThreadPool(getClass().getName());
 }
 @Before
 public void setUp() throws Exception {
   super.setUp();
   clusterService = createTimedClusterService(true);
 }