Source:
<code>public void testCookieParam() throws Exception { ResteasyClient client = new ResteasyClientBuilder().build(); try { Response response; String cookieExpectedResponse = person1.toString(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_list") <START> .request().cookie("person",name1).get(); <END> Assert.assertEquals(cookieExpectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_arrayList") .request().cookie("person",name1).get(); Assert.assertEquals(cookieExpectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_set") .request().cookie("person",name1).get(); Assert.assertEquals(cookieExpectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_hashSet") .request().cookie("person",name1).get(); Assert.assertEquals(cookieExpectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_sortedSet") .request().cookie("person",name1).get(); Assert.assertEquals(cookieExpectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_treeSet") .request().cookie("person",name1).get(); Assert.assertEquals(cookieExpectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_array") .request().cookie("person",name1).get(); Assert.assertEquals(cookieExpectedResponse, response.readEntity(String.class)); response.close(); } finally { client.close(); } }</code><technical_language>person</technical_language>

Target:
public void testCookieParam() throws Exception { ResteasyClient client = new ResteasyClientBuilder().build(); try { Response response; String requestString = name1 + "-" + name2 + "-" + name3; response = client.target(generateBaseUrl() + "/cookieParam/customConversion_list") .request().cookie("person", requestString).get(); Assert.assertEquals(expectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_arrayList") .request().cookie("person", requestString).get(); Assert.assertEquals(expectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_set") .request().cookie("person", requestString).get(); Assert.assertEquals(expectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_hashSet") .request().cookie("person", requestString).get(); Assert.assertEquals(expectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_sortedSet") .request().cookie("person", requestString).get(); Assert.assertEquals(expectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_treeSet") .request().cookie("person", requestString).get(); Assert.assertEquals(expectedResponse, response.readEntity(String.class)); response.close(); response = client.target(generateBaseUrl() + "/cookieParam/customConversion_array") .request().cookie("person", requestString).get(); Assert.assertEquals(expectedResponse, response.readEntity(String.class)); response.close(); } finally { client.close(); } }