String value = "value_1";
int maxage = javax.ws.rs.core.NewCookie.DEFAULT_MAX_AGE;
int version = 1;
boolean secure = false;
Cookie ck1 = new Cookie(name, value);
NewCookie nck1 = new NewCookie(ck1);
name = "name_2";
value = "value_2";
String path = "/acme";
String domain = "";
Cookie ck2 = new Cookie(name, value, path, domain);
NewCookie nck2 = new NewCookie(ck2);
name = "name_3";
value = "value_3";
path = "";
domain = "y.x.foo.com";
Cookie ck3 = new Cookie(name, value, path, domain);
NewCookie nck3 = new NewCookie(ck3);
List<String> cookies = Arrays.asList(nck1.toString().toLowerCase(),
nck2.toString().toLowerCase(),
nck3.toString().toLowerCase());