Destination { public Port getPort() { return port; } Destination(String host, Port port);  Destination(String uriString); boolean noPort(); String getHost(); Stream<String> getIPs(); Port getPort(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void connection_info_with_default_http_port_if_http_uri_with_no_port() throws Exception { Destination destination = new Destination("http: Assert.assertEquals(ImmutablePort.of(80), destination.getPort()); }
@Test public void connection_info_with_default_https_port_if_https_uri_with_no_port() throws Exception { Destination destination = new Destination("https: Assert.assertEquals(ImmutablePort.of(443), destination.getPort()); }