@Test
public void authIsAppliedIfConfigured() {

    // given
    Auth auth = mock(Auth.class);
    JestHttpObjectFactory factory = createTestObjectFactoryBuilder()
            .withAuth(auth)
            .build();
    // when
    factory.createClient();
    //then
    verify(auth).configure(any());
}