@Test
public void parsesSetCookieHeader() throws Exception {

    MultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();
    headers.put(SET_COOKIE, newArrayList("name=andrew",
                                         "company=codenvy;version=1;paTh=/path;Domain=codenvy.com;comment=\"comment\";max-age=300;HttpOnly;secure"));
    ResponseImpl response = new ResponseImpl(200, "foo", null, headers);
    Map<String, NewCookie> expectedCookies = ImmutableMap.of("name", new NewCookie("name", "andrew"),
                                                             "company", new NewCookie("company", "codenvy", "/path", "codenvy.com", 1, "comment", 300, null, true, true));
    assertEquals(expectedCookies, response.getCookies());
}