@Test
    void verifyFails() throws Throwable {
        val factory = new PrivateKeyFactoryBean();
        factory.setLocation(new ClassPathResource("badkey.pem"));
        factory.setAlgorithm(RsaKeyUtil.RSA);
        factory.setSingleton(false);
        assertNull(factory.getObject());
    }
This is {@link PrivateKeyFactoryBeanTests}.

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