### Question:
OnlyInternalHealthCheckFilter implements HealthCheckFilter { @Override public boolean matches(String name, HealthCheck healthCheckFilter) { if (healthCheckFilter == null) { return false; } return checkForAnnotation(healthCheckFilter.getClass()); }  @Override boolean matches(String name, HealthCheck healthCheckFilter);  }### Answer:
@Test public void ignoreNull() { assertThat(filter.matches("null", null)).isFalse(); }
@Test public void identifyAnnotatedCheckAsExternal() { assertThat(filter.matches("external", new ExternalBaseHealthCheck())).isFalse(); }
@Test public void identifySubclassOfAnnotatedCheckAsExternal() { assertThat(filter.matches("childOfExternal", new ExternalCustomHealthCheck())).isFalse(); }
@Test public void identifyDefaultHealthCheckAsInternal() { assertThat(filter.matches("defaultIsInternal", new InternalHealthCheck())).isTrue(); }