public synchronized static HealthCheckRegistry setDefault(String name) {
        final HealthCheckRegistry registry = getOrCreate(name);
        return setDefault(name, registry);
    }
@Test
    public void unableToSetDefaultRegistryTwice() {
        expectedException.expect(IllegalStateException.class);
        expectedException.expectMessage("Default health check registry is already set.");

        SharedHealthCheckRegistries.setDefault("default");
        SharedHealthCheckRegistries.setDefault("default");
    }