static TestRuntime get() {
        TestRuntime provided = TestRuntimeProvider.getTestRuntime();
        if (provided != null) {
            logger.fine("Using test runtime from TestRuntimeProvider");
            return provided;
        }
        logger.fine("Using test runtime from ServiceLoader");
        return ServiceLoader.load(TestRuntime.class, TestRuntime.class.getClassLoader())
                            .findFirst()
                            .orElseThrow(() -> new IllegalStateException("No TestRuntime initialized"));
    }
The place to obtain environment-dependent configuration for test of a Vespa deployment.

@author jvenstad
@author mortent
tenant-cd-api/src/main/java/ai/vespa/hosted/cd/TestRuntime.java