### Question:
GoodDataEndpoint { public String toUri() { return new HttpHost(hostname, port, protocol).toURI(); } GoodDataEndpoint(final String hostname, final int port, final String protocol);  GoodDataEndpoint(String hostname, int port);  GoodDataEndpoint(String hostname);  GoodDataEndpoint(); String toUri(); String getHostname(); int getPort(); String getProtocol(); static final String PROTOCOL; static final int PORT; static final String HOSTNAME; }### Answer:
@Test public void testToUri() { assertThat(endpoint.toUri(), is("http: }