@Test
    void verifyNoCert() {
        val factory = new BasicX509CredentialFactoryBean();
        assertSame(BasicX509Credential.class, factory.getObjectType());
        assertTrue(factory.isSingleton());
        assertThrows(BeanCreationException.class, factory::getObject);
    }
This is {@link BasicX509CredentialFactoryBeanTests}.

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