private static BaseRegisteredService getService(final String keyLocation) {
        val svc = new CasRegisteredService();
        svc.setServiceId("Testing");
        if (StringUtils.isNotBlank(keyLocation)) {
            svc.setPublicKey(new RegisteredServicePublicKeyImpl(keyLocation, "RSA"));
        }
        return svc;
    }
This is {@link RegisteredServicePublicKeyCipherExecutorTests}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-services-authentication/src/test/java/org/apereo/cas/services/RegisteredServicePublicKeyCipherExecutorTests.java