@Test
    void verifyCreateUpdateOperation() throws Throwable {
        val context = MockRequestContext.create();

        val username = RandomUtils.randomAlphabetic(8);
        val authentication = RegisteredServiceTestUtils.getAuthentication(username);
        WebUtils.putAuthentication(authentication, context);
        WebUtils.putCredential(context, CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword());
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, syncopePrincipalProvisionerAction.execute(context).getId());

        val principal = RegisteredServiceTestUtils.getPrincipal(username, Map.of("email", List.of("example@google.com")));
        val newAuthentication = RegisteredServiceTestUtils.getAuthentication(principal);
        WebUtils.putAuthentication(newAuthentication, context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, syncopePrincipalProvisionerAction.execute(context).getId());
    }
This is {@link SyncopeWebflowConfigurerTests}.

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