@Test
public void testIsCacheVersionValid() throws Exception {

    final long date = 123456789;
    StoreInfoAndData info = new StoreInfoAndData((byte[]) null, date, false);
    assertTrue(new ChangeDateValidator(date).isCacheVersionValid(info));
    info = new StoreInfoAndData((byte[]) null, date + 600, false);
    assertFalse(new ChangeDateValidator(date).isCacheVersionValid(info));
    info = new StoreInfoAndData((byte[]) null, date - 600, false);
    assertFalse(new ChangeDateValidator(date).isCacheVersionValid(info));
    info = new StoreInfoAndData((byte[]) null, date - 99, false);
    assertTrue(new ChangeDateValidator(date).isCacheVersionValid(info));
}