private static void runTest(final BaseJacksonSerializer serializer, final Class clazz, final Object object) throws Exception {
        val mapper = serializer.getObjectMapper();
        val content = mapper.writeValueAsString(object);
        assertNotNull(mapper.readValue(content, clazz));
    }
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