assertThat(restxRequest.getCookieValue("unexistingCookie").or("valueWhenNotFound"), is(equalTo("valueWhenNotFound")));
}
@Test
public void shouldCookieExpirationBeCorrectlyCalculated() throws InterruptedException {
SimpleRestxRequest restxRequest = createRestxRequest(
persistentCookie("fastlyExpiredCookie", "fastlyExpiredCookieValue", 1),
new Cookie("foo", "fooVal")
);
assertThat(restxRequest.isPersistentCookie("foo"), is(false));
assertThat(restxRequest.isPersistentCookie("fastlyExpiredCookie"), is(true));
}