@Test public void parseCacheHeaders_serverRelative() {

    long now = System.currentTimeMillis();
    // Set "current" date as one hour in the future
    headers.put("Date", rfc1123Date(now + ONE_HOUR_MILLIS));
    // TTL four hours in the future, so should be three hours from now
    headers.put("Expires", rfc1123Date(now + 4 * ONE_HOUR_MILLIS));
    NetworkResponse response = new NetworkResponse(0, new byte[0], Headers.of(headers), 0);
    Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
    assertEqualsWithin(now + 3 * ONE_HOUR_MILLIS, entry.ttl, ONE_MINUTE_MILLIS);
    assertEquals(entry.softTtl, entry.ttl);
}