construct_with_error("http", "www.google.com", -3);
}
private void construct_with_error(String protocol, String host, int port) {
try {
new BasicHost(protocol, host, port);
Assert.fail("Exception should be thrown, but not.");
} catch(IllegalArgumentException e) {
// OK
}
}