ServerUtil { public static String buildCacheKey(String serverHost, int serverPort) { return StringUtil.merge(serverHost, ":", serverPort); }  static boolean isIpv4(String ip); static int getNewPort(); @SneakyThrows static int getNewPort(String key); static boolean isPort(int serverPort); static boolean isSocketPort(int serverPort); static boolean checkHostAndPort(String serverHost, int serverPort); static String buildCacheKey(String serverHost, int serverPort);  }
@Test public void testBuildCacheKey() { assertEquals(ServerUtil.buildCacheKey(TestConstants.LOCAL_HOST, 8080), StringUtil.merge(TestConstants.LOCAL_HOST, ":8080")); }