@Test
public void testParseJsonObjectFromUrlWithProxySettings() throws Exception
{

    // Override the configuration to specify proxy settings.
    Map<String, Object> overrideMap = new HashMap<>();
    overrideMap.put(ConfigurationValue.HTTP_PROXY_HOST.getKey(), HTTP_PROXY_HOST);
    overrideMap.put(ConfigurationValue.HTTP_PROXY_PORT.getKey(), HTTP_PROXY_PORT);
    modifyPropertySourceInEnvironment(overrideMap);
    try
    {
        assertEquals(MockUrlOperationsImpl.MOCK_JSON_STRING, urlHelper.parseJsonObjectFromUrl(MockUrlOperationsImpl.MOCK_URL_VALID).toJSONString());
    }
    finally
    {
        // Restore the property sources so we don't affect other tests.
        restorePropertySourceInEnvironment();
    }
}