@Test
    void verifyClientSecurityRequest() {
        val registeredService = getWsFederationRegisteredService();
        assertNotNull(securityTokenServiceClientBuilder.buildClientForSecurityTokenRequests(registeredService));
        val bus = BusFactory.getDefaultBus();
        val extension = bus.getExtension(HTTPConduitConfigurer.class);
        assertNotNull(extension);

        val conduit = mock(HTTPConduit.class);
        val configured = new AtomicBoolean();
        doAnswer((Answer<Object>) invocationOnMock -> {
            configured.set(true);
            return null;
        }).when(conduit).setTlsClientParameters(any());
        extension.configure("mockBean", "https://localhost:8443/cas/", conduit);
        assertTrue(configured.get());
    }
This is {@link SecurityTokenServiceClientBuilderTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-ws-idp/src/test/java/org/apereo/cas/authentication/SecurityTokenServiceClientBuilderTests.java