This will not happen.
To do integration tests, you can:
Use the Gradle tools elasticsearch already has. You can read some information about this here: #21119. This sample project shows how to use Elasticsearch Test Classes- Use the Maven plugin: GitHub - alexcojocaru/elasticsearch-maven-plugin: A Maven plugin to run a single node Elasticsearch cluster during the integration test phase of a build
- Use Ant scripts like https://david.pilato.fr/blog/2016-07-29-elasticsearch-real-integration-tests/
- Using Docker and TestContainers: Elasticsearch container - Testcontainers for Java
- Using Docker from maven: https://github.com/dadoonet/fscrawler/blob/e15dddf72b1ed094dad279d492e4e0314f73683f/pom.xml#L241-L289
For sure, integration tests must be run against a real elasticsearch instance.
Unit tests should not require any third party tool to run IMHO.