public static HealthCheckRegistry getDefault() {
        final HealthCheckRegistry healthCheckRegistry = tryGetDefault();
        if (healthCheckRegistry != null) {
            return healthCheckRegistry;
        }
        throw new IllegalStateException("Default registry name has not been set.");
    }
@Test
    public void defaultRegistryIsNotSetByDefault() {
        expectedException.expect(IllegalStateException.class);
        expectedException.expectMessage("Default registry name has not been set.");

        SharedHealthCheckRegistries.getDefault();
    }