public static InetSocketAddress getInetAddress(String address) {
        if (address.startsWith(HTTP)) {
            address = address.replaceFirst(HTTP, "");
        }

        if (address.startsWith(HTTPS)) {
            address = address.replaceFirst(HTTPS, "");
        }

        String[] addressStr = address.split(":");
        if (addressStr.length < 2) {
            throw new ConnectionException("Failed to connect to the server because the IP address is invalid. Procedure");
        }
        return InetSocketAddress.createUnresolved(addressStr[0], Integer.parseInt(addressStr[1]));
    }
@Test(expected = ConnectionException.class)
    public void testAddress3() {
        AddressUtil.getInetAddress(address3);
    }