public HttpHost[] getHttpHosts() {
        return httpHosts;
    }
@Test
    public void usesMultipleHostnames() {
        EsConfig esConfig = new EsConfig("http://host1:9200", "http://host2:9200");
        HttpHost[] httpHosts = esConfig.getHttpHosts();
        assertEquals(2, httpHosts.length);
        assertEquals("host1", httpHosts[0].getHostName());
        assertEquals("host2", httpHosts[1].getHostName());
    }