@Test
        void verifySerializeToJson() throws IOException {
            val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
            val attributes = new HashMap<String, Set<String>>();
            attributes.put("scimGroups", Set.of("Tour Guides"));
            val strategyWritten = new ScimRegisteredServiceAccessStrategy();
            strategyWritten.setRequiredAttributes(attributes);
            MAPPER.writeValue(jsonFile, strategyWritten);
            val credentialRead = MAPPER.readValue(jsonFile, ScimRegisteredServiceAccessStrategy.class);
            assertEquals(strategyWritten, credentialRead);
        }
This is {@link ScimRegisteredServiceAccessStrategyTests}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-scim/src/test/java/org/apereo/cas/scim/v2/ScimRegisteredServiceAccessStrategyTests.java