public HttpHost[] getHttpHosts() {
        return httpHosts;
    }
@Test
    public void usesElasticsearchDefaults() {
        EsConfig esConfig = new EsConfig();
        HttpHost[] httpHosts = esConfig.getHttpHosts();
        assertEquals(1, httpHosts.length);
        assertEquals("http", httpHosts[0].getSchemeName());
        assertEquals(9200, httpHosts[0].getPort());
        assertEquals("localhost", httpHosts[0].getHostName());
    }