@Test
	public void testGetAllSegments() throws Exception
	{
		List<Segment> listSegments = new ArrayList<Segment>();
		uriAppend = "all";
		uriParameters.put("type", "SEGMENT");
		try{
			prop.load(WebRequest.class.getResourceAsStream("/config.properties"));
			targetHost = new HttpHost(prop.getProperty("host","node73-188.prod-aws.eadpdata.ea.com"),
					Integer.parseInt(prop.getProperty("port","8080")),
					prop.getProperty("scheme","http"));
			credsProvider.setCredentials(
					new AuthScope(targetHost.getHostName(),targetHost.getPort()), 
					new UsernamePasswordCredentials(
							prop.getProperty("username","bittick"),
							prop.getProperty("password","m6ACx7ad")));
			
			URIBuilder uri = new URIBuilder(prop.getProperty("queryUri")+uriAppend);
			
			jsonArray = WebRequest.newWebRequest(prop, targetHost, credsProvider, uriAppend, uriParameters, uri);
		} catch (Exception e){
			fail(e.getStackTrace().toString());
		}
		
		for(Map<String,String> map : jsonArray){
			Segment segment = new Segment(map);
			listSegments.add(segment);
		}
		
		Assert.assertEquals(3, jsonArray.size());
		Assert.assertEquals(3, listSegments.size());
	}