@Test
public void clientIsInitializedOnlyOnce() {

    // given
    JestHttpObjectFactory factory = spy(createTestObjectFactoryBuilder().build());
    // when
    JestClient client1 = factory.createClient();
    JestClient client2 = factory.createClient();
    // then
    assertEquals(client1, client2);
}