### Question:
TransportConfig { public static String getHeartbeatApiPath() { String apiPath = SentinelConfig.getConfig(HEARTBEAT_API_PATH); if (StringUtil.isBlank(apiPath)) { return HEARTBEAT_DEFAULT_PATH; } if (!apiPath.startsWith("/")) { apiPath = "/" + apiPath; } return apiPath; }  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 testGetHeartbeatApiPath() { assertTrue(StringUtil.isNotEmpty(TransportConfig.getHeartbeatApiPath())); assertEquals(TransportConfig.HEARTBEAT_DEFAULT_PATH, TransportConfig.getHeartbeatApiPath()); SentinelConfig.setConfig(TransportConfig.HEARTBEAT_API_PATH, "/demo"); assertTrue(StringUtil.isNotEmpty(TransportConfig.getHeartbeatApiPath())); assertEquals("/demo", TransportConfig.getHeartbeatApiPath()); SentinelConfig.setConfig(TransportConfig.HEARTBEAT_API_PATH, "demo/registry"); assertEquals("/demo/registry", TransportConfig.getHeartbeatApiPath()); SentinelConfig.removeConfig(TransportConfig.HEARTBEAT_API_PATH); assertEquals(TransportConfig.HEARTBEAT_DEFAULT_PATH, TransportConfig.getHeartbeatApiPath()); }