// Ensure that when the host is specified a system proxy is created.
addHTTPPropertyExpectations("foobar", "99", "me", "mine",
"*.volantis.com|www.google.com");
ProxyFactory factory = new ProxyFactoryImpl(systemPropertiesMock);
ProxyManager manager = factory.getSystemProxyManager();
Proxy proxy = manager.getProxyForHost("www.google.com2");
assertNotNull(proxy);
checkProxy(proxy, "foobar", 99, "me", "mine");