// set the cookie on the server side
String body = IOUtils.readFully(client.execute(new HttpGet("http://127.0.0.1:8080/echo/")).getEntity().getContent());
System.out.println(body);
Har har = proxy.getHar();
HarEntry entry = har.getLog().getEntries().get(0);
HarCookie harCookie = entry.getRequest().getCookies().get(0);
Assert.assertEquals("foo", harCookie.getName());
Assert.assertEquals("bar", harCookie.getValue());
}