@Test
public void shouldSerializeCookieWithUrlEncode() {

    String value = "= &";
    Cookie cookie = new Cookie("name", value);
    String serializedCookie = cookieHeaderSerializer.serialize(cookie);
    assertThat(serializedCookie, is("name=" + StringUtilities.urlEncode(value)));
}