@Test
    void verifyOperation() throws Throwable {
        val serializer = new BaseJacksonSerializer(applicationContext, Object.class) {
            @Serial
            private static final long serialVersionUID = 1083978605633757365L;
        };

        val mapper = serializer.getObjectMapper();
        assertTrue(mapper.getRegisteredModuleIds().contains(NimbusOAuthJacksonModule.class.getName()));
        runTest(serializer, CodeVerifier.class, new CodeVerifier(RandomUtils.randomAlphabetic(CodeVerifier.MIN_LENGTH)));
        runTest(serializer, BearerAccessToken.class, new BearerAccessToken("access-token-value"));
        runTest(serializer, RefreshToken.class, new RefreshToken("access-token-value"));
        runTest(serializer, AccessTokenType.class, AccessTokenType.BEARER);
        runTest(serializer, Scope.class, new Scope("profile"));
    }
This is {@link NimbusOAuthJacksonModuleTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-pac4j-api/src/test/java/org/apereo/cas/pac4j/serialization/NimbusOAuthJacksonModuleTests.java