@Test
    void verifyOperation() {
        try (val webServer = new MockWebServer(8923, HttpStatus.OK)) {
            webServer.start();
            assertNotNull(OktaConfigurationFactory.buildAuthenticationClient(casProperties.getAuthn().getOkta()));
            assertThrows(OAuth2TokenRetrieverException.class,
                () -> OktaConfigurationFactory.buildClient(casProperties.getAuthn().getAttributeRepository().getOkta()));
        }

    }
This is {@link OktaConfigurationFactoryTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-okta-authentication/src/test/java/org/apereo/cas/okta/OktaConfigurationFactoryTests.java