assertEquals(200, response.getCode());
assertEquals(2, response.getVersion());
@SuppressWarnings("unchecked")
EntryWithReferencesBean<TimeBean> entry = (EntryWithReferencesBean<TimeBean>) response.getData();
TimeBean time = entry.getEntry();
assertNotNull(time);
long delta = Math.abs(time.getTime() - t);
assertTrue("check that time delta is within limits: delta=" + delta,
delta < 100);
String readableTime = DateLibrary.getTimeAsIso8601String(new Date(
time.getTime()));
assertEquals(readableTime, time.getReadableTime());
}