private static SSLConnectionSocketFactory sslFactory(final Resource resource, final String password,
                                                             final String trustStoreType) throws Exception {
            val sslContext = new DefaultCasSSLContext(resource, password, trustStoreType,
                new HttpClientProperties(), NoopHostnameVerifier.INSTANCE);
            return new SSLConnectionSocketFactory(sslContext.getSslContext());
        }
Tests for the {@code FileTrustStoreSslSocketFactory} class, checking for self-signed
and missing certificates via a local truststore.

@author Misagh Moayyed
@since 4.1.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/FileTrustStoreSslSocketFactoryTests.java