@@ -0,0 +1,1245 @@
+import stroom.search.elastic.ElasticClientFactory;%0Aimport stroom.util.test.StroomJUnit4ClassRunner;%0A%0Aimport org.apache.http.HttpHost;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0A@RunWith(StroomJUnit4ClassRunner.class)%0Apublic class TestElasticClientFactory %7B%0A    @Test%0A    public void TestHostFromUrl() %7B%0A        // Scheme and hostname%0A        final String hostName = %22elastic.example.com.au%22;%0A        String url = %22https://%22 + hostName;%0A        HttpHost host = ElasticClientFactory.hostFromUrl(url);%0A        Assert.assertNotNull(%22Valid host is returned%22, host);%0A        Assert.assertEquals(%22https%22, host.getSchemeName());%0A        Assert.assertEquals(hostName, host.getHostName());%0A%0A        // Scheme, hostname and port%0A        final int port = 9200;%0A        url = %22http://%22 + hostName + %22:9200%22;%0A        host = ElasticClientFactory.hostFromUrl(url);%0A        Assert.assertNotNull(%22Valid host is returned%22, host);%0A        Assert.assertEquals(hostName, host.getHostName());%0A        Assert.assertEquals(port, host.getPort());%0A%0A        // Invalid URL%0A        url = hostName;%0A        host = ElasticClientFactory.hostFromUrl(url);%0A        Assert.assertNull(%22No host is returned for an invalid URL%22, host);%0A    %7D%0A%7D%0A

Add `ElasticClientFactory` tests