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