@Test
    void verifySerializeAOidcRegisteredServiceToJson() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val serviceWritten = new OidcRegisteredService();
        serviceWritten.setName("verifySerializeAOidcRegisteredServiceToJson");
        serviceWritten.setServiceId("testId");
        serviceWritten.setJwks("file:/tmp/thekeystorehere.jwks");
        serviceWritten.setSignIdToken(true);
        serviceWritten.setBypassApprovalPrompt(true);
        serviceWritten.setUsernameAttributeProvider(new PairwiseOidcRegisteredServiceUsernameAttributeProvider());
        MAPPER.writeValue(jsonFile, serviceWritten);
        val serviceRead = MAPPER.readValue(jsonFile, OidcRegisteredService.class);
        assertEquals(serviceWritten, serviceRead);
    }
Test cases for {@link OidcRegisteredService}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-oidc-services/src/test/java/org/apereo/cas/services/OidcRegisteredServiceTests.java