@Test
public void clientCreationWithNullClientConfig() {

    JestClientFactory factory = new JestClientFactory();
    JestHttpClient jestClient = (JestHttpClient) factory.getObject();
    assertTrue(jestClient != null);
    assertNotNull(jestClient.getAsyncClient());
    assertEquals(jestClient.getServerPoolSize(), 1);
    assertEquals("server list should contain localhost:9200",
            "http://localhost:9200", jestClient.getNextServer());
}