assertEquals(2, segments.size());
assertEquals("segment1", segments.get(0));
assertEquals("segment2", segments.get(1));
List<QueryParameter> queryParameters = copy.getQueryParameters();
assertEquals(1, queryParameters.size());
QueryParameter queryParameter = queryParameters.get(0);
assertEquals("name1", queryParameter.getName());
assertEquals("value1", queryParameter.getValue());
assertEquals(protocol, copy.getProtocol());
assertEquals(host, copy.getHost());
assertEquals(port, copy.getPort());
}