@Test
    void verifyPrinter() {
        val appCtx = new StaticApplicationContext();
        appCtx.refresh();
        val zer = new RegisteredServiceYamlSerializer(appCtx);
        assertFalse(zer.supports(new File("bad-file")));
        assertFalse(zer.getContentTypes().isEmpty());
        assertNotNull(zer.getJsonFactory());
    }
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