@Test
public void unableToSetCustomDefaultRegistryTwice() {

    expectedException.expect(IllegalStateException.class);
    expectedException.expectMessage("Default health check registry is already set.");
    SharedHealthCheckRegistries.setDefault("default", new HealthCheckRegistry());
    SharedHealthCheckRegistries.setDefault("default", new HealthCheckRegistry());
}