NamedHealthCheck extends HealthCheck { public String getName() { return name; } protected  NamedHealthCheck(); protected  NamedHealthCheck(final String name); protected  NamedHealthCheck(String name, Logger logger); String getName(); @Override Result execute();  }
@Test public void checkLegacyNamedHealthCheck() { LegacyNamedHealthCheck healthCheck = new LegacyNamedHealthCheck(); assertThat(healthCheck.getName(), is("dummy")); }