@BeforeEach
    void setup() {
        mongoDbSamlIdPMetadataTemplate.remove(new Query(), SamlMetadataDocument.class,
            casProperties.getAuthn().getSamlIdp().getMetadata().getMongo().getCollection());
    }
This is {@link MongoDbSamlRegisteredServiceMetadataResolverTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-saml-idp-metadata-mongo/src/test/java/org/apereo/cas/support/saml/metadata/resolver/MongoDbSamlRegisteredServiceMetadataResolverTests.java