DefaultProbe extends Probe { public DefaultProbe(Map<String, String> props) { this("Default probe: IP presence", props); } DefaultProbe(Map<String, String> props); protected  DefaultProbe(String name, Map<String, String> props); static DefaultProbe create(); static DefaultProbe create(Map<String, String> props); @Override ProbeStatus ping(ComponentInstance instance);  }
@Test public void testDefaultProbe() { ComponentInstance componentInstance = createMockComponentInstance("example.com"); checkPingResults(probe, componentInstance, false); componentInstance = createMockComponentInstance("bad.dns.test"); checkPingResults(probe, componentInstance, probe.isDnsCheckEnabled()); }