@Test
public void responseToStringTest() throws Exception {

	HttpResponse resp = mock(HttpResponse.class);
	HttpEntity entity = mock(HttpEntity.class);
	when(resp.getEntity()).thenReturn(entity);
	StatusLine statusLine = mock(StatusLine.class);
	when(resp.getStatusLine()).thenReturn(statusLine);
	when(statusLine.getStatusCode()).thenReturn(HttpStatus.SC_OK);
	when(entity.getContent()).thenReturn(new FileInputStream("src/test/resources/foobar.txt"));
	assertEquals("hello world foo!!", TradingUtils.responseToString(resp));
}