assertSame(cookie, agent.cookies().get("ID", ".test.com"));
}
@Test
public void testRemovingASingleCookie() {
Mechanize agent = new MechanizeAgent();
Cookie cookie1 = agent.cookies().addNewCookie("ID", "MyID", ".wikipedia.org");
Cookie cookie2 = agent.cookies().addNewCookie("ID2", "MySecondID", "wikipedia.org");
agent.cookies().remove(cookie1);
assertFalse(agent.cookies().getAll().contains(cookie1));
assertTrue(agent.cookies().getAll().contains(cookie2));
}