@AfterEach
    public void close() {
        // stop the Connect cluster and its backing Kafka cluster.
        connect.stop();
        IntegrationTestRestExtension.instance = null;
    }
A simple integration test to ensure that REST extensions are registered correctly.
connect/runtime/src/test/java/org/apache/kafka/connect/integration/RestExtensionIntegrationTest.java