new BasicHeader("name", "value0,value1"),
new BasicHeader("nAme", "cookie1=1,cookie2=2")
};
HeaderElementIterator hei =
new BasicHeaderElementIterator(new BasicHeaderIterator(headers, "Name"));
HeaderElement elem = (HeaderElement)hei.next();
assertEquals("The two header values must be equal",
"value0", elem.getName());
elem = (HeaderElement)hei.next();
assertEquals("The two header values must be equal",
"value1", elem.getName());
elem = (HeaderElement)hei.next();
assertEquals("The two header values must be equal",
"cookie1", elem.getName());
assertEquals("The two header values must be equal",
"1", elem.getValue());
elem = (HeaderElement)hei.next();
assertEquals("The two header values must be equal",
"cookie2", elem.getName());
assertEquals("The two header values must be equal",
"2", elem.getValue());
}