Endpoint implements Serializable { public static Endpoint create(String hostname) { return new Endpoint(hostname, DEFAULT_PORT, false); } private  Endpoint(String hostname, int port, boolean useSsl); String getHostname(); int getPort(); boolean isUseSsl(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static Endpoint create(String hostname); static Endpoint create(String hostname, int port, boolean useSsl); static Endpoint create(URL url);  }
@Test(expected = RuntimeException.class) public void testBasicWithHttpsProtocolPrefix() { Endpoint.create("https: }