DefaultEsWebClientFactory implements EsWebClientFactory { public String buildEsUrl() { return String.format("http: esClientConfiguration.getPort()); } DefaultEsWebClientFactory(EsClientConfiguration esClientConfiguration); @Override WebClient buildWebClient(); String buildEsUrl();  }
@Test public void verifyEsHost() { final DefaultEsWebClientFactory defaultEsWebClientFactory = new DefaultEsWebClientFactory(getClientConfiguration()); String esUri = defaultEsWebClientFactory.buildEsUrl(); assertThat(esUri).isEqualTo("http: }