@Test
public void doesntApplyCertInfoIfNotConfigured() {

    // given
    XPackAuth auth = createTestBuilder()
            .withCertInfo(null)
            .build();
    HttpClientConfig.Builder settingsBuilder = spy(createDefaultClientConfigBuilder());
    // when
    auth.configure(settingsBuilder);
    // then
    verify(settingsBuilder, never()).sslSocketFactory(any());
    verify(settingsBuilder, never()).httpsIOSessionStrategy(any());
}