@Test
    void verifyOperationByService() throws Throwable {
        val service = RegisteredServiceTestUtils.getService("https://publickey.service");
        val registeredService = RegisteredServiceTestUtils.getRegisteredService(service.getId());

        val signingKey = new DefaultRegisteredServiceProperty();
        signingKey.addValue("classpath:/jwtRS256.key");
        registeredService.getProperties().put(
            RegisteredServiceProperty.RegisteredServiceProperties.TOKEN_AS_SERVICE_TICKET_SIGNING_KEY.getPropertyName(), signingKey);
        servicesManager.save(registeredService);
        val publicKey = endpoint.fetchPublicKey(service.getId());
        assertNotNull(publicKey);
        try (val r = new PemReader(new StringReader(publicKey))) {
            assertNotNull(r.readPemObject());
        }
    }
This is {@link JwtTokenCipherSigningPublicKeyEndpointTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-token-core/src/test/java/org/apereo/cas/token/JwtTokenCipherSigningPublicKeyEndpointTests.java