time[0] = time[0].addPeriod(Period.inSeconds(-20));
assertEquals(expires, rcd.getExpires());
}
public void testMaxAgeAndExpires() {
final SystemClockMock clockMock =
new SystemClockMock("clockMock", expectations);
final long time = System.currentTimeMillis();
clockMock.expects.getCurrentTime().returns(
Time.inMilliSeconds(time)).any();
final ResponseCachingDirectives rcd =
new ResponseCachingDirectives(clockMock);