@Test
    void verifySerializeAReturnMappedAttributeReleasePolicyToJson() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val serviceWritten = new SamlRegisteredService();
        serviceWritten.setName(SAML_SERVICE);
        serviceWritten.setServiceId("http://mmoayyed.unicon.net");
        serviceWritten.setMetadataLocation(METADATA_LOCATION);
        serviceWritten.setSignAssertions(TriStateBoolean.UNDEFINED);
        MAPPER.writeValue(jsonFile, serviceWritten);
        val serviceRead = MAPPER.readValue(jsonFile, SamlRegisteredService.class);
        assertEquals(serviceWritten, serviceRead);
    }
The {@link SamlRegisteredServiceTests} handles test cases for {@link SamlRegisteredService}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/services/SamlRegisteredServiceTests.java