final String entity = response.getEntity().getText();
assertEquals("c1, c2", entity.substring(1, entity.length() - 1));
}
public void testWithDefault() throws IOException {
Response response = get("withDefault", new Cookie("c", "value"));
sysOutEntityIfError(response);
assertEquals(Status.SUCCESS_OK, response.getStatus());
assertEquals("value", response.getEntity().getText());
response = get("withDefault", new Cookie("c", "sdfgdfg"));
sysOutEntityIfError(response);
assertEquals(Status.SUCCESS_OK, response.getStatus());
assertEquals("sdfgdfg", response.getEntity().getText());
response = get("withDefault");