@ParameterizedTest
    @MethodSource("getObjectMapperFactories")
    void verifySerializationPerformance(final JsonFactory factory) throws Throwable {
        val mapper = JacksonObjectMapperFactory
            .builder()
            .jsonFactory(factory)
            .build()
            .toObjectMapper();
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(UUID.randomUUID().toString());
        val stopWatch = new StopWatch();
        stopWatch.start();
        for (var i = 0; i < 100; i++) {
            val written = mapper.writeValueAsBytes(registeredService);
            assertNotNull(written);
            val result = mapper.readValue(written, RegisteredService.class);
            assertNotNull(result);
        }
        LOGGER.debug("[{}]->[{}]", factory.getClass().getSimpleName(), stopWatch.getDuration());
        stopWatch.stop();
    }
Handles test cases for {@link JsonServiceRegistry}.

@author Misagh Moayyed
@since 4.1.0
support/cas-server-support-json-service-registry/src/test/java/org/apereo/cas/services/JsonServiceRegistryTests.java