ElasticSearchTestCase : while Creating client instance using ESIntegTestCase
I suppose it happens because a test cluster is not initialized yet. There is no need to have the client variable static. I'd propose to use @Before annotation and instance variable