@Test
    void verifyWriter() {
        val appCtx = new StaticApplicationContext();
        appCtx.refresh();
        val zer = new RegisteredServiceYamlSerializer(appCtx);
        val writer = new StringWriter();
        zer.to(writer, new CasRegisteredService());
        assertNotNull(zer.from(new ByteArrayInputStream(writer.toString().getBytes(StandardCharsets.UTF_8))));
    }
This is {@link RegisteredServiceYamlSerializerTests}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/util/RegisteredServiceYamlSerializerTests.java