ResponsiveHealthIndicator implements HealthIndicator { static String getContactPoint(final GatewayCfg gatewayCfg) { final String host = gatewayCfg.getNetwork().getHost(); final int port = gatewayCfg.getNetwork().getPort(); return host + ":" + port; } ResponsiveHealthIndicator(final GatewayCfg gatewayCfg, final Duration defaultTimeout); @Override Health health();  }
@Test public void testGetContactPoint() { final String actualContactPoint = ResponsiveHealthIndicator.getContactPoint(TEST_CFG); assertThat(actualContactPoint).isEqualTo("testhost:1234"); }