@@ -0,0 +1,1456 @@
+package de.tblsoft.solr.http;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.net.URISyntaxException;%0A%0A/**%0A * Created by tblsoft on 30.04.16.%0A */%0Apublic class ElasticHelperTest %7B%0A%0A%0A    @Test%0A    public void getIndexUrlTest() throws URISyntaxException %7B%0A        String expected = %22http://localhost/foo%22;%0A        String actual = ElasticHelper.getIndexUrl(%22http://localhost/foo%22);%0A        Assert.assertEquals(expected, actual);%0A%0A        actual = ElasticHelper.getIndexUrl(%22http://localhost/foo/%22);%0A        Assert.assertEquals(expected, actual);%0A%0A        actual = ElasticHelper.getIndexUrl(%22http://localhost/foo/bar%22);%0A        Assert.assertEquals(expected, actual);%0A%0A        actual = ElasticHelper.getIndexUrl(%22http://localhost/foo/bar/%22);%0A        Assert.assertEquals(expected, actual);%0A%0A        actual = ElasticHelper.getIndexUrl(%22http://localhost/foo/bar/?%22);%0A        Assert.assertEquals(expected, actual);%0A    %7D%0A%0A    @Test(expected = URISyntaxException.class)%0A    public void getIndexUrlTestWithEmptyUrl() throws URISyntaxException %7B%0A        ElasticHelper.getIndexUrl(%22%22);%0A    %7D%0A%0A    @Test(expected = URISyntaxException.class)%0A    public void getIndexUrlTestWithNullUrl() throws URISyntaxException %7B%0A        ElasticHelper.getIndexUrl(null);%0A    %7D%0A%0A    @Test(expected = URISyntaxException.class)%0A    public void getIndexUrlTestInvalidElasticIndexUrl() throws URISyntaxException %7B%0A        ElasticHelper.getIndexUrl(%22http://localhost/%22);%0A    %7D%0A%7D%0A

implement unit test for ElasticHelper