@Test
    void verifyAction() {
        val user = new User();
        user.setActive(true);
        user.setDisplayName("CASUser");
        user.setId("casuser");
        val name = new Name();
        name.setGivenName("casuser");
        user.setName(name);
        val meta = new Meta();
        meta.setResourceType("User");
        meta.setCreated(LocalDateTime.now(Clock.systemUTC()));
        meta.setLocation("http://localhost:8218");
        user.setMeta(meta);

        assertDoesNotThrow(() ->
            scim2PrincipalAttributeMapper.forCreate(CoreAuthenticationTestUtils.getPrincipal(),
                CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword()));
    }
This is {@link ScimPrincipalAttributeMapperTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-scim/src/test/java/org/apereo/cas/scim/v2/ScimPrincipalAttributeMapperTests.java