junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/HttpUrl.java
public URI toURI() {
		final String protocol = scheme.getProtocol();
		try {
			return new URI(protocol, null, host, port, path, null, null);
		}
		catch (URISyntaxException ex) {
			throw new UrlException(protocol, host, port, path, ex);
		}
	}
public URI toURI() {
		final String protocol = scheme.getProtocol();
		try {
			return new URI(protocol, null, host, port, path, null, null);
		}
		catch (URISyntaxException ex) {
			throw new UrlException(protocol, host, port, path, ex);
		}
	}
Create new {@link URI} from URL fields.

@return URI instance.
@throws IllegalArgumentException If {@code URI} cannot be built because of {@link URISyntaxException}.