@Test
    void verifyKeys() throws Throwable {
        val factory = new BasicResourceCredentialFactoryBean();
        assertSame(BasicCredential.class, factory.getObjectType());
        assertTrue(factory.isSingleton());
        factory.setUsageType("UNSPECIFIED");
        factory.setPrivateKeyInfo(new ClassPathResource("keys/private.pem"));
        factory.setPublicKeyInfo(new ClassPathResource("keys/public.pem"));
        assertNotNull(factory.getObject());
    }
This is {@link BasicResourceCredentialFactoryBeanTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-core/src/test/java/org/apereo/cas/support/saml/util/credential/BasicResourceCredentialFactoryBeanTests.java