@Test
public void testActivateForBasicProxy() throws Exception {

	JSONWebServiceClientImpl jsonWebServiceClientImpl =
		new JSONWebServiceClientImpl();
	Map<String, Object> properties = getBaseProperties();
	properties.put("proxyHostName", "proxyhost.net");
	properties.put("proxyHostPort", "443");
	properties.put("proxyLogin", "proxylogin");
	properties.put("proxyPassword", "proxypass");
	jsonWebServiceClientImpl.activate(properties);
	Assert.assertEquals(
		properties.get("hostName"), jsonWebServiceClientImpl.getHostName());
	Assert.assertEquals(
		properties.get("protocol"), jsonWebServiceClientImpl.getProtocol());
	Assert.assertNull(jsonWebServiceClientImpl.getProxyAuthType());
	Assert.assertEquals(
		properties.get("proxyHostName"),
		jsonWebServiceClientImpl.getProxyHostName());
	Assert.assertEquals(
		Integer.parseInt(String.valueOf(properties.get("proxyHostPort"))),
		jsonWebServiceClientImpl.getProxyHostPort());
	Assert.assertEquals(
		properties.get("proxyLogin"),
		jsonWebServiceClientImpl.getProxyLogin());
	Assert.assertEquals(
		properties.get("proxyPassword"),
		jsonWebServiceClientImpl.getProxyPassword());
}