Getting Jar Hell

I want to start test elasticsearch instance from java code for my tests.

It's not supported. See Elasticsearch, the server | Elastic Blog

Read this for some options: