// sleep for 1.2 seconds. This should give an age of 1 second due to
// the conservative nature of the age calculation. This will be added
// to the age header in the response
Thread.sleep(1200);
HTTPMessageEntities headers = resp.getHeaders();
HTTPMessageEntity[] ages = headers.retrieve(AGE_HEADER);
assertNotNull("There should be an age header", ages);
// check that we have calcualted the age to the page to be 1 second
// (its always rounded down)
assertEquals("Age should be 3 second", 3,