	@Test
	public void testHttpClient() throws ClientProtocolException, IOException {

		expectCall().andReturn(new DefaultSocketData("HTTP/1.0 200 OK\n\nTest".getBytes()));
		
		HttpClient httpclient = new DefaultHttpClient();
		HttpGet httpget = new HttpGet(ADDRESS);
		HttpResponse response = httpclient.execute(httpget);
		assertEquals("Test", printStream(response.getEntity().getContent()));
	}