* Ensure OR matching works
*
* @throws Exception
*/
public void testORExclude() throws Exception {
SystemProxyManager manager;
manager = createManagerWithExcludeList("www.google.com|localhost");
assertNull("Match", manager.getProxyForHost("localhost"));
assertNull("Match", manager.getProxyForHost("www.google.com"));
assertNotNull("No Match (due to training space",
manager.getProxyForHost("localhost "));
manager = createManagerWithExcludeList("abc.*.localhost|*.google.com");
assertNull("Match", manager.getProxyForHost("abc.not.localhost"));
assertNull("Match", manager.getProxyForHost("abc.*.localhost"));
assertNull("Match", manager.getProxyForHost("abc..localhost"));
assertNull("Match", manager.getProxyForHost("mail.google.com"));
assertNull("Match", manager.getProxyForHost(".google.com"));
}