@BeforeEach
    void cleanUp() {
        val query = new Query();
        query.addCriteria(Criteria.where(MongoDbWebAuthnCredentialRegistration.FIELD_USERNAME).exists(true));
        val collection = casProperties.getAuthn().getMfa().getWebAuthn().getMongo().getCollection();
        this.mongoTemplate.remove(query, MongoDbWebAuthnCredentialRegistration.class, collection);
    }
This is {@link MongoDbWebAuthnCredentialRepositoryTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-webauthn-mongo/src/test/java/org/apereo/cas/webauthn/MongoDbWebAuthnCredentialRepositoryTests.java