@Test
    void verifySerializeToJson() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val strategyWritten = new CerbosRegisteredServiceAccessStrategy();
        strategyWritten.setApiUrl("https://localhost:8080");
        strategyWritten.setActions(List.of("read", "write", "view"));
        strategyWritten.setAuxData(Map.of("key", "value"));
        strategyWritten.setToken(UUID.randomUUID().toString());
        strategyWritten.setRolesAttribute("memberOf");
        strategyWritten.setScope("scope1");
        strategyWritten.setKind("kind1");
        MAPPER.writeValue(jsonFile, strategyWritten);
        val read = MAPPER.readValue(jsonFile, CerbosRegisteredServiceAccessStrategy.class);
        assertEquals(strategyWritten, read);
    }
This is {@link CerbosRegisteredServiceAccessStrategyTests}.

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