@Test
    void verifyNoKeys() {
        val factory = new BasicResourceCredentialFactoryBean();
        assertThrows(BeanCreationException.class, 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