### Question:
UrlUtils { public static String getIpAddressFromUrl(String urlString) throws MalformedURLException, UnknownHostException { URL baseUrl = new URL(urlString); String hostname = baseUrl.getHost(); return UrlUtils.getHostIPAddress(hostname); }  static String trimSlashes(String string); static String getEncodedUrl(String url); static String removeFirstAndLastSlash(String uri); static String addFirstSlash(String uri); static String removeLastSlash(String uri); static String getHostIPAddress(String fqdn); static String getIpAddressFromUrl(String urlString);  }### Answer:
@Test public void testGetIPAddressFromUrl_Ok() throws UnknownHostException, MalformedURLException { String fqdn = "https: String ipAddress = UrlUtils.getIpAddressFromUrl(fqdn); assertNotNull(ipAddress); }