### Question:
NetUtil { public static String getHost(String url) { URIBuilder endpointURIBuilder = null; String host = null; try { endpointURIBuilder = new URIBuilder(url); host = endpointURIBuilder.build().getHost(); return host; } catch (URISyntaxException e) { LOGGER.error(e.getMessage(), e); } return host; }  static String getLocalHost(); static Integer getPort(String url); static String getHost(String url);  }### Answer:
@Test public void getHost() { String host = NetUtil.getHost("http: Assert.assertEquals(host, "127.0.0.1"); }