@Test
public void testFromString() throws Exception {

    Cookie cookie = Cookie.valueOf("JSESSIONID=3508015E4EF0ECA8C4B761FCC4BC1718");
    assertEquals(cookie.getName(), "JSESSIONID");
    assertEquals(cookie.getValue(), "3508015E4EF0ECA8C4B761FCC4BC1718");
}