@Override
        public void afterTestClass(final TestContext testContext) throws Exception {
            var registry = testContext.getApplicationContext().getBean("cassandraServiceRegistry", ServiceRegistry.class);
            ((DisposableBean) registry).destroy();
        }
This is {@link CassandraServiceRegistryTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-cassandra-service-registry/src/test/java/org/apereo/cas/adaptors/cassandra/services/CassandraServiceRegistryTests.java