@Test
public void runsRegisteredHealthChecksWithFilter() {

    final Map<String, HealthCheck.Result> results = registry.runHealthChecks((name, healthCheck) -> "hc1".equals(name));
    assertThat(results).containsOnly(entry("hc1", r1));
}