@Test
    void verifySerializeToJson() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val strategyWritten = new PermifyRegisteredServiceAccessStrategy();
        strategyWritten.setApiUrl("https://localhost:8080");
        strategyWritten.setSubjectRelation("owner");
        strategyWritten.setEntityType("document");
        strategyWritten.setTenantId(UUID.randomUUID().toString());
        strategyWritten.setPermission("delete");
        MAPPER.writeValue(jsonFile, strategyWritten);
        val read = MAPPER.readValue(jsonFile, PermifyRegisteredServiceAccessStrategy.class);
        assertEquals(strategyWritten, read);
    }
This is {@link PermifyRegisteredServiceAccessStrategyTests}.

@author Misagh Moayyed
@since 7.2.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/PermifyRegisteredServiceAccessStrategyTests.java