### Question:
TransportConfig { public static String getHeartbeatClientIp() { String ip = SentinelConfig.getConfig(HEARTBEAT_CLIENT_IP); if (StringUtil.isBlank(ip)) { ip = HostNameUtil.getIp(); } return ip; }  static Long getHeartbeatIntervalMs(); static List<Tuple2<String, Integer>> getConsoleServerList(); static int getRuntimePort(); static String getPort(); static void setRuntimePort(int port); static String getHeartbeatClientIp(); static String getHeartbeatApiPath(); static final String CONSOLE_SERVER; static final String SERVER_PORT; static final String HEARTBEAT_INTERVAL_MS; static final String HEARTBEAT_CLIENT_IP; static final String HEARTBEAT_API_PATH; static final String HEARTBEAT_DEFAULT_PATH; }### Answer:
@Test public void testGetHeartbeatClientIp() { String clientIp = "10.10.10.10"; SentinelConfig.setConfig(TransportConfig.HEARTBEAT_CLIENT_IP, clientIp); String ip = TransportConfig.getHeartbeatClientIp(); assertNotNull(ip); assertEquals(clientIp, ip); SentinelConfig.setConfig(TransportConfig.HEARTBEAT_CLIENT_IP, ""); assertTrue(StringUtil.isNotEmpty(TransportConfig.getHeartbeatClientIp())); }