@Test
    void checkNullability() {
        val json = """
            {
                "@class" : "org.apereo.cas.services.CasRegisteredService",
                "serviceId" : "^https://xyz.*"
                /* This is a comment here */
                "name" : "XYZ"
                "id" : "20161214",
            }""".indent(4);

        val registeredService = (CasRegisteredService) serializer.from(json);
        assertNotNull(registeredService);
        assertNotNull(registeredService.getAccessStrategy());
        assertNotNull(registeredService.getAttributeReleasePolicy());
        assertNotNull(registeredService.getProxyPolicy());
        assertNotNull(registeredService.getUsernameAttributeProvider());
    }
This is {@link RegisteredServiceJsonSerializerTests}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/util/RegisteredServiceJsonSerializerTests.java