private void clearDropwizardMetricsRegistry() {
        LOGGER.info("Clearing metrics registry");
        final MetricRegistry registry = SharedMetricRegistries.getDefault();
        if (registry != null) {
            registry.getNames()
                    .forEach(registry::remove);
        }
    }
This test listener is registered by service loader using the file
stroom-test-common/src/main/resources/META-INF/services/org.junit.platform.launcher.TestExecutionListener
Its methods will be called for any tests that include stroom-test-common as a dependency.
stroom-test-common/src/main/java/stroom/test/common/util/test/StroomTestExecutionListener.java