"name1=value1;Version=1;Path=/commons,name1=value2;Version=1;" +
"Path=/commons/httpclient;Version=1");
CookieSpec cookiespec = new CookieSpecBase();
Cookie[] parsed = cookieParse(cookiespec, ".apache.org", 80, "/commons/httpclient", true, header);
HttpState state = new HttpState();
state.addCookies(parsed);
Cookie[] cookies = state.getCookies();
assertEquals("Wrong number of cookies.",2,cookies.length);
assertEquals("Name","name1",cookies[0].getName());
assertEquals("Value","value1",cookies[0].getValue());
assertEquals("Name","name1",cookies[1].getName());
assertEquals("Value","value2",cookies[1].getValue());