@Test
public void setsTwoOutboundCookies() throws IOException, InterruptedException {
webServer.add(new HttpHandler() {
@Override
public void handleHttpRequest(HttpRequest request, HttpResponse response, HttpControl control) throws Exception {
response.cookie(new HttpCookie("a", "b")).cookie(new HttpCookie("c", "d")).end();
}
}).start();
URLConnection urlConnection = httpGet(webServer, "/");
List<HttpCookie> cookies = cookies(urlConnection);
assertEquals(2, cookies.size());