@Test
    void verifyOperationBySystem() {
        val system = CasSSLContext.system();
        assertNotNull(system.getSslContext());
        assertNotNull(system.getKeyManagers());
        assertNotNull(system.getTrustManagers());
        assertNotNull(system.getHostnameVerifier());
        assertNotNull(system.getTrustManagerFactory());
        assertNotNull(system.getKeyManagerFactory());
        assertNotNull(system.getKeyManagers());
        assertThrows(Exception.class, () -> contactUrl("https://expired.badssl.com/", system));
        assertThrows(Exception.class, () -> contactUrl("https://self-signed.badssl.com/", system));
    }
This is {@link CasSSLContextTests}.

@author Misagh Moayyed
@since 6.4.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/CasSSLContextTests.java