private boolean keepTestDatabases() {
        return NullSafe.test(
                System.getenv(KEEP_TEST_DATABASES),
                str -> str.equalsIgnoreCase("true"));
    }
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