Mock RestHighLevelClient for elasticsearch

I would like to test my rest api in quarkus which internally calls elasticsearch using RestHighLevelClient.
My problem is that the RestHighLevelClient is not mockable and hence I cannot execute my unit test to test the api.
Any help is highly appreciated!


Some users shared their solutions in this issue.

Would that work for you?