@Test
    void verifySerialization() throws Throwable {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val service = RegisteredServiceTestUtils.getRegisteredService(UUID.randomUUID().toString());
        val strategy = new PartialRegexRegisteredServiceMatchingStrategy();
        service.setMatchingStrategy(strategy);
        MAPPER.writeValue(jsonFile, service);
        val read = MAPPER.readValue(jsonFile, RegisteredService.class);
        assertEquals(read, service);
    }
This is {@link PartialRegexRegisteredServiceMatchingStrategyTests}.

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