@Test
    void verifyCreateOperation() throws Throwable {
        try (val webServer = new MockWebServer(9125, "[]", HttpStatus.OK)) {
            webServer.start();
            val context = MockRequestContext.create(applicationContext);
            val username = RandomUtils.randomAlphabetic(8);
            val principal = RegisteredServiceTestUtils.getPrincipal(username,
                Map.of("email", List.of("example@google.com"), "firstName", List.of("CAS")));
            val authentication = RegisteredServiceTestUtils.getAuthentication(principal);
            WebUtils.putAuthentication(authentication, context);
            WebUtils.putCredential(context, CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword());
            assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, oktaPrincipalProvisionerAction.execute(context).getId());
        }
    }
This is {@link OktaPrincipalProvisionerActionTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-okta-authentication/src/test/java/org/apereo/cas/okta/web/flow/OktaPrincipalProvisionerActionTests.java