@Test
    void verifyOperation() throws Throwable {
        val factory = new PublicKeyFactoryBean(new ClassPathResource("publickey.pem"), RsaKeyUtil.RSA);
        factory.setSingleton(false);
        val object = factory.getObject();
        assertNotNull(object);
    }
This is {@link PublicKeyFactoryBeanTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/crypto/PublicKeyFactoryBeanTests.java