@Test
public void testFromString() throws Exception {

    NewCookie expectedNewCookie = new NewCookie("company", "codenvy", "/path", "codenvy.com", 1, "comment", 300, null, true, true);
    NewCookie parsedNewCookie = newCookieHeaderDelegate.fromString("company=codenvy;version=1;paTh=/path;Domain=codenvy.com;comment=\"comment\";max-age=300;HttpOnly;secure");
    assertEquals(expectedNewCookie, parsedNewCookie);
}